home *** CD-ROM | disk | FTP | other *** search
/ Risc World 3 / Risc World 3.iso / SOFTWARE / ISSUE6 / PD / PDF / xpdf / xpdf / configure < prev    next >
Text File  |  2002-12-05  |  308KB  |  10,943 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.53.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. if expr a : '\(a\)' >/dev/null 2>&1; then
  11.   as_expr=expr
  12. else
  13.   as_expr=false
  14. fi
  15.  
  16.  
  17. ## --------------------- ##
  18. ## M4sh Initialization.  ##
  19. ## --------------------- ##
  20.  
  21. # Be Bourne compatible
  22. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  23.   emulate sh
  24.   NULLCMD=:
  25. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  26.   set -o posix
  27. fi
  28.  
  29. # NLS nuisances.
  30. # Support unset when possible.
  31. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  32.   as_unset=unset
  33. else
  34.   as_unset=false
  35. fi
  36.  
  37. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  38.     { $as_unset LANG || test "${LANG+set}" != set; } ||
  39.       { LANG=C; export LANG; }
  40. (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  41.     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  42.       { LC_ALL=C; export LC_ALL; }
  43. (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  44.     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  45.       { LC_TIME=C; export LC_TIME; }
  46. (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  47.     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  48.       { LC_CTYPE=C; export LC_CTYPE; }
  49. (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  50.     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  51.       { LANGUAGE=C; export LANGUAGE; }
  52. (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  53.     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  54.       { LC_COLLATE=C; export LC_COLLATE; }
  55. (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  56.     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  57.       { LC_NUMERIC=C; export LC_NUMERIC; }
  58. (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  59.     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  60.       { LC_MESSAGES=C; export LC_MESSAGES; }
  61.  
  62.  
  63. # Name of the executable.
  64. as_me=`(basename "$0") 2>/dev/null ||
  65. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  66.      X"$0" : 'X\(//\)$' \| \
  67.      X"$0" : 'X\(/\)$' \| \
  68.      .     : '\(.\)' 2>/dev/null ||
  69. echo X/"$0" |
  70.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  71.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  72.         /^X\/\(\/\).*/{ s//\1/; q; }
  73.         s/.*/./; q'`
  74.  
  75. # PATH needs CR, and LINENO needs CR and PATH.
  76. # Avoid depending upon Character Ranges.
  77. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  78. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  79. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  80. as_cr_digits='0123456789'
  81. as_cr_alnum=$as_cr_Letters$as_cr_digits
  82.  
  83. # The user is always right.
  84. if test "${PATH_SEPARATOR+set}" != set; then
  85.   echo "#! /bin/sh" >conftest.sh
  86.   echo  "exit 0"   >>conftest.sh
  87.   chmod +x conftest.sh
  88.   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  89.     PATH_SEPARATOR=';'
  90.   else
  91.     PATH_SEPARATOR=:
  92.   fi
  93.   rm -f conftest.sh
  94. fi
  95.  
  96.  
  97.   as_lineno_1=$LINENO
  98.   as_lineno_2=$LINENO
  99.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  100.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  101.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  102.   # Find who we are.  Look in the path if we contain no path at all
  103.   # relative or not.
  104.   case $0 in
  105.     *[\\/]* ) as_myself=$0 ;;
  106.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  107. for as_dir in $PATH
  108. do
  109.   IFS=$as_save_IFS
  110.   test -z "$as_dir" && as_dir=.
  111.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  112. done
  113.  
  114.        ;;
  115.   esac
  116.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  117.   # in which case we are not to be found in the path.
  118.   if test "x$as_myself" = x; then
  119.     as_myself=$0
  120.   fi
  121.   if test ! -f "$as_myself"; then
  122.     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  123.    { (exit 1); exit 1; }; }
  124.   fi
  125.   case $CONFIG_SHELL in
  126.   '')
  127.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  128. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  129. do
  130.   IFS=$as_save_IFS
  131.   test -z "$as_dir" && as_dir=.
  132.   for as_base in sh bash ksh sh5; do
  133.      case $as_dir in
  134.      /*)
  135.        if ("$as_dir/$as_base" -c '
  136.   as_lineno_1=$LINENO
  137.   as_lineno_2=$LINENO
  138.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  139.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  140.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  141.          CONFIG_SHELL=$as_dir/$as_base
  142.          export CONFIG_SHELL
  143.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  144.        fi;;
  145.      esac
  146.        done
  147. done
  148. ;;
  149.   esac
  150.  
  151.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  152.   # uniformly replaced by the line number.  The first 'sed' inserts a
  153.   # line-number line before each line; the second 'sed' does the real
  154.   # work.  The second script uses 'N' to pair each line-number line
  155.   # with the numbered line, and appends trailing '-' during
  156.   # substitution so that $LINENO is not a special case at line end.
  157.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  158.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  159.   sed '=' <$as_myself |
  160.     sed '
  161.       N
  162.       s,$,-,
  163.       : loop
  164.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  165.       t loop
  166.       s,-$,,
  167.       s,^['$as_cr_digits']*\n,,
  168.     ' >$as_me.lineno &&
  169.   chmod +x $as_me.lineno ||
  170.     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  171.    { (exit 1); exit 1; }; }
  172.  
  173.   # Don't try to exec as it changes $[0], causing all sort of problems
  174.   # (the dirname of $[0] is not the place where we might find the
  175.   # original and so on.  Autoconf is especially sensible to this).
  176.   . ./$as_me.lineno
  177.   # Exit status is that of the last command.
  178.   exit
  179. }
  180.  
  181.  
  182. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  183.   *c*,-n*) ECHO_N= ECHO_C='
  184. ' ECHO_T='    ' ;;
  185.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  186.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  187. esac
  188.  
  189. if expr a : '\(a\)' >/dev/null 2>&1; then
  190.   as_expr=expr
  191. else
  192.   as_expr=false
  193. fi
  194.  
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. echo >conf$$.file
  197. if ln -s conf$$.file conf$$ 2>/dev/null; then
  198.   # We could just check for DJGPP; but this test a) works b) is more generic
  199.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  200.   if test -f conf$$.exe; then
  201.     # Don't use ln at all; we don't have any links
  202.     as_ln_s='cp -p'
  203.   else
  204.     as_ln_s='ln -s'
  205.   fi
  206. elif ln conf$$.file conf$$ 2>/dev/null; then
  207.   as_ln_s=ln
  208. else
  209.   as_ln_s='cp -p'
  210. fi
  211. rm -f conf$$ conf$$.exe conf$$.file
  212.  
  213. as_executable_p="test -f"
  214.  
  215. # Sed expression to map a string onto a valid CPP name.
  216. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  217.  
  218. # Sed expression to map a string onto a valid variable name.
  219. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  220.  
  221.  
  222. # IFS
  223. # We need space, tab and new line, in precisely that order.
  224. as_nl='
  225. '
  226. IFS="     $as_nl"
  227.  
  228. # CDPATH.
  229. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  230.  
  231.  
  232. # Name of the host.
  233. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  234. # so uname gets run too.
  235. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  236.  
  237. exec 6>&1
  238.  
  239. #
  240. # Initializations.
  241. #
  242. ac_default_prefix=/usr/local
  243. cross_compiling=no
  244. subdirs=
  245. MFLAGS=
  246. MAKEFLAGS=
  247. SHELL=${CONFIG_SHELL-/bin/sh}
  248.  
  249. # Maximum number of lines to put in a shell here document.
  250. # This variable seems obsolete.  It should probably be removed, and
  251. # only ac_max_sed_lines should be used.
  252. : ${ac_max_here_lines=38}
  253.  
  254. # Identity of this package.
  255. PACKAGE_NAME=
  256. PACKAGE_TARNAME=
  257. PACKAGE_VERSION=
  258. PACKAGE_STRING=
  259. PACKAGE_BUGREPORT=
  260.  
  261. ac_unique_file="xpdf/xpdf.cc"
  262. # Factoring default headers for most tests.
  263. ac_includes_default="\
  264. #include <stdio.h>
  265. #if HAVE_SYS_TYPES_H
  266. # include <sys/types.h>
  267. #endif
  268. #if HAVE_SYS_STAT_H
  269. # include <sys/stat.h>
  270. #endif
  271. #if STDC_HEADERS
  272. # include <stdlib.h>
  273. # include <stddef.h>
  274. #else
  275. # if HAVE_STDLIB_H
  276. #  include <stdlib.h>
  277. # endif
  278. #endif
  279. #if HAVE_STRING_H
  280. # if !STDC_HEADERS && HAVE_MEMORY_H
  281. #  include <memory.h>
  282. # endif
  283. # include <string.h>
  284. #endif
  285. #if HAVE_STRINGS_H
  286. # include <strings.h>
  287. #endif
  288. #if HAVE_INTTYPES_H
  289. # include <inttypes.h>
  290. #else
  291. # if HAVE_STDINT_H
  292. #  include <stdint.h>
  293. # endif
  294. #endif
  295. #if HAVE_UNISTD_H
  296. # include <unistd.h>
  297. #endif"
  298.  
  299.  
  300. # Initialize some variables set by options.
  301. ac_init_help=
  302. ac_init_version=false
  303. # The variables have the same names as the options, with
  304. # dashes changed to underlines.
  305. cache_file=/dev/null
  306. exec_prefix=NONE
  307. no_create=
  308. no_recursion=
  309. prefix=NONE
  310. program_prefix=NONE
  311. program_suffix=NONE
  312. program_transform_name=s,x,x,
  313. silent=
  314. site=
  315. srcdir=
  316. verbose=
  317. x_includes=NONE
  318. x_libraries=NONE
  319.  
  320. # Installation directory options.
  321. # These are left unexpanded so users can "make install exec_prefix=/foo"
  322. # and all the variables that are supposed to be based on exec_prefix
  323. # by default will actually change.
  324. # Use braces instead of parens because sh, perl, etc. also accept them.
  325. bindir='${exec_prefix}/bin'
  326. sbindir='${exec_prefix}/sbin'
  327. libexecdir='${exec_prefix}/libexec'
  328. datadir='${prefix}/share'
  329. sysconfdir='${prefix}/etc'
  330. sharedstatedir='${prefix}/com'
  331. localstatedir='${prefix}/var'
  332. libdir='${exec_prefix}/lib'
  333. includedir='${prefix}/include'
  334. oldincludedir='/usr/include'
  335. infodir='${prefix}/info'
  336. mandir='${prefix}/man'
  337.  
  338. ac_prev=
  339. for ac_option
  340. do
  341.   # If the previous option needs an argument, assign it.
  342.   if test -n "$ac_prev"; then
  343.     eval "$ac_prev=\$ac_option"
  344.     ac_prev=
  345.     continue
  346.   fi
  347.  
  348.   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  349.  
  350.   # Accept the important Cygnus configure options, so we can diagnose typos.
  351.  
  352.   case $ac_option in
  353.  
  354.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  355.     ac_prev=bindir ;;
  356.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  357.     bindir=$ac_optarg ;;
  358.  
  359.   -build | --build | --buil | --bui | --bu)
  360.     ac_prev=build_alias ;;
  361.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  362.     build_alias=$ac_optarg ;;
  363.  
  364.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  365.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  366.     ac_prev=cache_file ;;
  367.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  368.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  369.     cache_file=$ac_optarg ;;
  370.  
  371.   --config-cache | -C)
  372.     cache_file=config.cache ;;
  373.  
  374.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  375.     ac_prev=datadir ;;
  376.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  377.   | --da=*)
  378.     datadir=$ac_optarg ;;
  379.  
  380.   -disable-* | --disable-*)
  381.     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  382.     # Reject names that are not valid shell variable names.
  383.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  384.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  385.    { (exit 1); exit 1; }; }
  386.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  387.     eval "enable_$ac_feature=no" ;;
  388.  
  389.   -enable-* | --enable-*)
  390.     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  391.     # Reject names that are not valid shell variable names.
  392.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  393.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  394.    { (exit 1); exit 1; }; }
  395.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  396.     case $ac_option in
  397.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  398.       *) ac_optarg=yes ;;
  399.     esac
  400.     eval "enable_$ac_feature='$ac_optarg'" ;;
  401.  
  402.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  403.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  404.   | --exec | --exe | --ex)
  405.     ac_prev=exec_prefix ;;
  406.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  407.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  408.   | --exec=* | --exe=* | --ex=*)
  409.     exec_prefix=$ac_optarg ;;
  410.  
  411.   -gas | --gas | --ga | --g)
  412.     # Obsolete; use --with-gas.
  413.     with_gas=yes ;;
  414.  
  415.   -help | --help | --hel | --he | -h)
  416.     ac_init_help=long ;;
  417.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  418.     ac_init_help=recursive ;;
  419.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  420.     ac_init_help=short ;;
  421.  
  422.   -host | --host | --hos | --ho)
  423.     ac_prev=host_alias ;;
  424.   -host=* | --host=* | --hos=* | --ho=*)
  425.     host_alias=$ac_optarg ;;
  426.  
  427.   -includedir | --includedir | --includedi | --included | --include \
  428.   | --includ | --inclu | --incl | --inc)
  429.     ac_prev=includedir ;;
  430.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  431.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  432.     includedir=$ac_optarg ;;
  433.  
  434.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  435.     ac_prev=infodir ;;
  436.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  437.     infodir=$ac_optarg ;;
  438.  
  439.   -libdir | --libdir | --libdi | --libd)
  440.     ac_prev=libdir ;;
  441.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  442.     libdir=$ac_optarg ;;
  443.  
  444.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  445.   | --libexe | --libex | --libe)
  446.     ac_prev=libexecdir ;;
  447.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  448.   | --libexe=* | --libex=* | --libe=*)
  449.     libexecdir=$ac_optarg ;;
  450.  
  451.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  452.   | --localstate | --localstat | --localsta | --localst \
  453.   | --locals | --local | --loca | --loc | --lo)
  454.     ac_prev=localstatedir ;;
  455.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  456.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  457.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  458.     localstatedir=$ac_optarg ;;
  459.  
  460.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  461.     ac_prev=mandir ;;
  462.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  463.     mandir=$ac_optarg ;;
  464.  
  465.   -nfp | --nfp | --nf)
  466.     # Obsolete; use --without-fp.
  467.     with_fp=no ;;
  468.  
  469.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  470.   | --no-cr | --no-c | -n)
  471.     no_create=yes ;;
  472.  
  473.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  474.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  475.     no_recursion=yes ;;
  476.  
  477.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  478.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  479.   | --oldin | --oldi | --old | --ol | --o)
  480.     ac_prev=oldincludedir ;;
  481.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  482.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  483.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  484.     oldincludedir=$ac_optarg ;;
  485.  
  486.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  487.     ac_prev=prefix ;;
  488.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  489.     prefix=$ac_optarg ;;
  490.  
  491.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  492.   | --program-pre | --program-pr | --program-p)
  493.     ac_prev=program_prefix ;;
  494.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  495.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  496.     program_prefix=$ac_optarg ;;
  497.  
  498.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  499.   | --program-suf | --program-su | --program-s)
  500.     ac_prev=program_suffix ;;
  501.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  502.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  503.     program_suffix=$ac_optarg ;;
  504.  
  505.   -program-transform-name | --program-transform-name \
  506.   | --program-transform-nam | --program-transform-na \
  507.   | --program-transform-n | --program-transform- \
  508.   | --program-transform | --program-transfor \
  509.   | --program-transfo | --program-transf \
  510.   | --program-trans | --program-tran \
  511.   | --progr-tra | --program-tr | --program-t)
  512.     ac_prev=program_transform_name ;;
  513.   -program-transform-name=* | --program-transform-name=* \
  514.   | --program-transform-nam=* | --program-transform-na=* \
  515.   | --program-transform-n=* | --program-transform-=* \
  516.   | --program-transform=* | --program-transfor=* \
  517.   | --program-transfo=* | --program-transf=* \
  518.   | --program-trans=* | --program-tran=* \
  519.   | --progr-tra=* | --program-tr=* | --program-t=*)
  520.     program_transform_name=$ac_optarg ;;
  521.  
  522.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  523.   | -silent | --silent | --silen | --sile | --sil)
  524.     silent=yes ;;
  525.  
  526.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  527.     ac_prev=sbindir ;;
  528.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  529.   | --sbi=* | --sb=*)
  530.     sbindir=$ac_optarg ;;
  531.  
  532.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  533.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  534.   | --sharedst | --shareds | --shared | --share | --shar \
  535.   | --sha | --sh)
  536.     ac_prev=sharedstatedir ;;
  537.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  538.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  539.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  540.   | --sha=* | --sh=*)
  541.     sharedstatedir=$ac_optarg ;;
  542.  
  543.   -site | --site | --sit)
  544.     ac_prev=site ;;
  545.   -site=* | --site=* | --sit=*)
  546.     site=$ac_optarg ;;
  547.  
  548.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  549.     ac_prev=srcdir ;;
  550.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  551.     srcdir=$ac_optarg ;;
  552.  
  553.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  554.   | --syscon | --sysco | --sysc | --sys | --sy)
  555.     ac_prev=sysconfdir ;;
  556.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  557.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  558.     sysconfdir=$ac_optarg ;;
  559.  
  560.   -target | --target | --targe | --targ | --tar | --ta | --t)
  561.     ac_prev=target_alias ;;
  562.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  563.     target_alias=$ac_optarg ;;
  564.  
  565.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  566.     verbose=yes ;;
  567.  
  568.   -version | --version | --versio | --versi | --vers | -V)
  569.     ac_init_version=: ;;
  570.  
  571.   -with-* | --with-*)
  572.     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  573.     # Reject names that are not valid shell variable names.
  574.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  575.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  576.    { (exit 1); exit 1; }; }
  577.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  578.     case $ac_option in
  579.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  580.       *) ac_optarg=yes ;;
  581.     esac
  582.     eval "with_$ac_package='$ac_optarg'" ;;
  583.  
  584.   -without-* | --without-*)
  585.     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  586.     # Reject names that are not valid shell variable names.
  587.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  588.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  589.    { (exit 1); exit 1; }; }
  590.     ac_package=`echo $ac_package | sed 's/-/_/g'`
  591.     eval "with_$ac_package=no" ;;
  592.  
  593.   --x)
  594.     # Obsolete; use --with-x.
  595.     with_x=yes ;;
  596.  
  597.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  598.   | --x-incl | --x-inc | --x-in | --x-i)
  599.     ac_prev=x_includes ;;
  600.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  601.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  602.     x_includes=$ac_optarg ;;
  603.  
  604.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  605.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  606.     ac_prev=x_libraries ;;
  607.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  608.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  609.     x_libraries=$ac_optarg ;;
  610.  
  611.   -*) { echo "$as_me: error: unrecognized option: $ac_option
  612. Try \`$0 --help' for more information." >&2
  613.    { (exit 1); exit 1; }; }
  614.     ;;
  615.  
  616.   *=*)
  617.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  618.     # Reject names that are not valid shell variable names.
  619.     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  620.       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  621.    { (exit 1); exit 1; }; }
  622.     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  623.     eval "$ac_envvar='$ac_optarg'"
  624.     export $ac_envvar ;;
  625.  
  626.   *)
  627.     # FIXME: should be removed in autoconf 3.0.
  628.     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  629.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  630.       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  631.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  632.     ;;
  633.  
  634.   esac
  635. done
  636.  
  637. if test -n "$ac_prev"; then
  638.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  639.   { echo "$as_me: error: missing argument to $ac_option" >&2
  640.    { (exit 1); exit 1; }; }
  641. fi
  642.  
  643. # Be sure to have absolute paths.
  644. for ac_var in exec_prefix prefix
  645. do
  646.   eval ac_val=$`echo $ac_var`
  647.   case $ac_val in
  648.     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  649.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  650.    { (exit 1); exit 1; }; };;
  651.   esac
  652. done
  653.  
  654. # Be sure to have absolute paths.
  655. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  656.               localstatedir libdir includedir oldincludedir infodir mandir
  657. do
  658.   eval ac_val=$`echo $ac_var`
  659.   case $ac_val in
  660.     [\\/$]* | ?:[\\/]* ) ;;
  661.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  662.    { (exit 1); exit 1; }; };;
  663.   esac
  664. done
  665.  
  666. # There might be people who depend on the old broken behavior: `$host'
  667. # used to hold the argument of --host etc.
  668. # FIXME: To remove some day.
  669. build=$build_alias
  670. host=$host_alias
  671. target=$target_alias
  672.  
  673. # FIXME: To remove some day.
  674. if test "x$host_alias" != x; then
  675.   if test "x$build_alias" = x; then
  676.     cross_compiling=maybe
  677.     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  678.     If a cross compiler is detected then cross compile mode will be used." >&2
  679.   elif test "x$build_alias" != "x$host_alias"; then
  680.     cross_compiling=yes
  681.   fi
  682. fi
  683.  
  684. ac_tool_prefix=
  685. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  686.  
  687. test "$silent" = yes && exec 6>/dev/null
  688.  
  689.  
  690. # Find the source files, if location was not specified.
  691. if test -z "$srcdir"; then
  692.   ac_srcdir_defaulted=yes
  693.   # Try the directory containing this script, then its parent.
  694.   ac_confdir=`(dirname "$0") 2>/dev/null ||
  695. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  696.          X"$0" : 'X\(//\)[^/]' \| \
  697.          X"$0" : 'X\(//\)$' \| \
  698.          X"$0" : 'X\(/\)' \| \
  699.          .     : '\(.\)' 2>/dev/null ||
  700. echo X"$0" |
  701.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  702.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  703.         /^X\(\/\/\)$/{ s//\1/; q; }
  704.         /^X\(\/\).*/{ s//\1/; q; }
  705.         s/.*/./; q'`
  706.   srcdir=$ac_confdir
  707.   if test ! -r $srcdir/$ac_unique_file; then
  708.     srcdir=..
  709.   fi
  710. else
  711.   ac_srcdir_defaulted=no
  712. fi
  713. if test ! -r $srcdir/$ac_unique_file; then
  714.   if test "$ac_srcdir_defaulted" = yes; then
  715.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  716.    { (exit 1); exit 1; }; }
  717.   else
  718.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  719.    { (exit 1); exit 1; }; }
  720.   fi
  721. fi
  722. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  723. ac_env_build_alias_set=${build_alias+set}
  724. ac_env_build_alias_value=$build_alias
  725. ac_cv_env_build_alias_set=${build_alias+set}
  726. ac_cv_env_build_alias_value=$build_alias
  727. ac_env_host_alias_set=${host_alias+set}
  728. ac_env_host_alias_value=$host_alias
  729. ac_cv_env_host_alias_set=${host_alias+set}
  730. ac_cv_env_host_alias_value=$host_alias
  731. ac_env_target_alias_set=${target_alias+set}
  732. ac_env_target_alias_value=$target_alias
  733. ac_cv_env_target_alias_set=${target_alias+set}
  734. ac_cv_env_target_alias_value=$target_alias
  735. ac_env_CC_set=${CC+set}
  736. ac_env_CC_value=$CC
  737. ac_cv_env_CC_set=${CC+set}
  738. ac_cv_env_CC_value=$CC
  739. ac_env_CFLAGS_set=${CFLAGS+set}
  740. ac_env_CFLAGS_value=$CFLAGS
  741. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  742. ac_cv_env_CFLAGS_value=$CFLAGS
  743. ac_env_LDFLAGS_set=${LDFLAGS+set}
  744. ac_env_LDFLAGS_value=$LDFLAGS
  745. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  746. ac_cv_env_LDFLAGS_value=$LDFLAGS
  747. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  748. ac_env_CPPFLAGS_value=$CPPFLAGS
  749. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  750. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  751. ac_env_CXX_set=${CXX+set}
  752. ac_env_CXX_value=$CXX
  753. ac_cv_env_CXX_set=${CXX+set}
  754. ac_cv_env_CXX_value=$CXX
  755. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  756. ac_env_CXXFLAGS_value=$CXXFLAGS
  757. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  758. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  759. ac_env_CPP_set=${CPP+set}
  760. ac_env_CPP_value=$CPP
  761. ac_cv_env_CPP_set=${CPP+set}
  762. ac_cv_env_CPP_value=$CPP
  763.  
  764. #
  765. # Report the --help message.
  766. #
  767. if test "$ac_init_help" = "long"; then
  768.   # Omit some internal or obsolete options to make the list less imposing.
  769.   # This message is too long to be a string in the A/UX 3.1 sh.
  770.   cat <<_ACEOF
  771. \`configure' configures this package to adapt to many kinds of systems.
  772.  
  773. Usage: $0 [OPTION]... [VAR=VALUE]...
  774.  
  775. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  776. VAR=VALUE.  See below for descriptions of some of the useful variables.
  777.  
  778. Defaults for the options are specified in brackets.
  779.  
  780. Configuration:
  781.   -h, --help              display this help and exit
  782.       --help=short        display options specific to this package
  783.       --help=recursive    display the short help of all the included packages
  784.   -V, --version           display version information and exit
  785.   -q, --quiet, --silent   do not print \`checking...' messages
  786.       --cache-file=FILE   cache test results in FILE [disabled]
  787.   -C, --config-cache      alias for \`--cache-file=config.cache'
  788.   -n, --no-create         do not create output files
  789.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  790.  
  791. _ACEOF
  792.  
  793.   cat <<_ACEOF
  794. Installation directories:
  795.   --prefix=PREFIX         install architecture-independent files in PREFIX
  796.                           [$ac_default_prefix]
  797.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  798.                           [PREFIX]
  799.  
  800. By default, \`make install' will install all the files in
  801. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  802. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  803. for instance \`--prefix=\$HOME'.
  804.  
  805. For better control, use the options below.
  806.  
  807. Fine tuning of the installation directories:
  808.   --bindir=DIR           user executables [EPREFIX/bin]
  809.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  810.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  811.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  812.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  813.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  814.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  815.   --libdir=DIR           object code libraries [EPREFIX/lib]
  816.   --includedir=DIR       C header files [PREFIX/include]
  817.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  818.   --infodir=DIR          info documentation [PREFIX/info]
  819.   --mandir=DIR           man documentation [PREFIX/man]
  820. _ACEOF
  821.  
  822.   cat <<\_ACEOF
  823.  
  824. X features:
  825.   --x-includes=DIR    X include files are in DIR
  826.   --x-libraries=DIR   X library files are in DIR
  827. _ACEOF
  828. fi
  829.  
  830. if test -n "$ac_init_help"; then
  831.  
  832.   cat <<\_ACEOF
  833.  
  834. Optional Features:
  835.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  836.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  837.   --enable-a4-paper       use A4 paper size instead of Letter for
  838.                           PostScript output
  839.   --enable-no-text-select do not allow text selection
  840.   --enable-opi            include support for OPI comments
  841.   --enable-multithreaded  include support for multithreading
  842.   --disable-largefile     omit support for large files
  843.  
  844. Optional Packages:
  845.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  846.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  847.   --with-appdef-dir       set app-defaults directory
  848.   --with-x                use the X Window System
  849.   --with-Xpm-library=PATH use Xpm library (pixmap library - used only for icon)
  850.   --with-Xpm-includes=DIR set directory for Xpm headers
  851.   --with-Xext-library=PATH
  852.                           use Xext library (Motif library)
  853.   --with-Xext-includes=DIR
  854.                           set directory for Xext headers
  855.   --with-Xp-library=PATH use Xp library (Motif library)
  856.   --with-Xp-includes=DIR set directory for Xp headers
  857.   --with-Xt-library=PATH use Xt library (Motif library)
  858.   --with-Xt-includes=DIR set directory for Xt headers
  859.   --with-Xm-library=PATH use Xm library (Motif library)
  860.   --with-Xm-includes=DIR set directory for Xm headers
  861.   --with-t1-library=PATH use t1 library (Type 1 font rasterizer)
  862.   --with-t1-includes=DIR set directory for t1 headers
  863.   --with-freetype2-library=PATH
  864.                           use freetype2 library (FreeType2 font rasterizer - version 2.0.5+)
  865.   --with-freetype2-includes=DIR
  866.                           set directory for freetype2 headers
  867.   --with-freetype-library=PATH
  868.                           use freetype library (FreeType font rasterizer)
  869.   --with-freetype-includes=DIR
  870.                           set directory for freetype headers
  871.   --with-libpaper-library=PATH
  872.                           use libpaper library (Debian libpaper)
  873.   --with-libpaper-includes=DIR
  874.                           set directory for libpaper headers
  875.  
  876. Some influential environment variables:
  877.   CC          C compiler command
  878.   CFLAGS      C compiler flags
  879.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  880.               nonstandard directory <lib dir>
  881.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  882.               headers in a nonstandard directory <include dir>
  883.   CXX         C++ compiler command
  884.   CXXFLAGS    C++ compiler flags
  885.   CPP         C preprocessor
  886.  
  887. Use these variables to override the choices made by `configure' or to help
  888. it to find libraries and programs with nonstandard names/locations.
  889.  
  890. _ACEOF
  891. fi
  892.  
  893. if test "$ac_init_help" = "recursive"; then
  894.   # If there are subdirs, report their specific --help.
  895.   ac_popdir=`pwd`
  896.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  897.     test -d $ac_dir || continue
  898.     ac_builddir=.
  899.  
  900. if test "$ac_dir" != .; then
  901.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  902.   # A "../" for each directory in $ac_dir_suffix.
  903.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  904. else
  905.   ac_dir_suffix= ac_top_builddir=
  906. fi
  907.  
  908. case $srcdir in
  909.   .)  # No --srcdir option.  We are building in place.
  910.     ac_srcdir=.
  911.     if test -z "$ac_top_builddir"; then
  912.        ac_top_srcdir=.
  913.     else
  914.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  915.     fi ;;
  916.   [\\/]* | ?:[\\/]* )  # Absolute path.
  917.     ac_srcdir=$srcdir$ac_dir_suffix;
  918.     ac_top_srcdir=$srcdir ;;
  919.   *) # Relative path.
  920.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  921.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  922. esac
  923. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  924. # absolute.
  925. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  926. ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  927. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  928. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  929.  
  930.     cd $ac_dir
  931.     # Check for guested configure; otherwise get Cygnus style configure.
  932.     if test -f $ac_srcdir/configure.gnu; then
  933.       echo
  934.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  935.     elif test -f $ac_srcdir/configure; then
  936.       echo
  937.       $SHELL $ac_srcdir/configure  --help=recursive
  938.     elif test -f $ac_srcdir/configure.ac ||
  939.            test -f $ac_srcdir/configure.in; then
  940.       echo
  941.       $ac_configure --help
  942.     else
  943.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  944.     fi
  945.     cd $ac_popdir
  946.   done
  947. fi
  948.  
  949. test -n "$ac_init_help" && exit 0
  950. if $ac_init_version; then
  951.   cat <<\_ACEOF
  952.  
  953. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  954. Free Software Foundation, Inc.
  955. This configure script is free software; the Free Software Foundation
  956. gives unlimited permission to copy, distribute and modify it.
  957. _ACEOF
  958.   exit 0
  959. fi
  960. exec 5>config.log
  961. cat >&5 <<_ACEOF
  962. This file contains any messages produced by compilers while
  963. running configure, to aid debugging if configure makes a mistake.
  964.  
  965. It was created by $as_me, which was
  966. generated by GNU Autoconf 2.53.  Invocation command line was
  967.  
  968.   $ $0 $@
  969.  
  970. _ACEOF
  971. {
  972. cat <<_ASUNAME
  973. ## --------- ##
  974. ## Platform. ##
  975. ## --------- ##
  976.  
  977. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  978. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  979. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  980. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  981. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  982.  
  983. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  984. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  985.  
  986. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  987. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  988. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  989. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  990. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  991. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  992. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  993.  
  994. _ASUNAME
  995.  
  996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  997. for as_dir in $PATH
  998. do
  999.   IFS=$as_save_IFS
  1000.   test -z "$as_dir" && as_dir=.
  1001.   echo "PATH: $as_dir"
  1002. done
  1003.  
  1004. } >&5
  1005.  
  1006. cat >&5 <<_ACEOF
  1007.  
  1008.  
  1009. ## ----------- ##
  1010. ## Core tests. ##
  1011. ## ----------- ##
  1012.  
  1013. _ACEOF
  1014.  
  1015.  
  1016. # Keep a trace of the command line.
  1017. # Strip out --no-create and --no-recursion so they do not pile up.
  1018. # Also quote any args containing shell meta-characters.
  1019. ac_configure_args=
  1020. ac_sep=
  1021. for ac_arg
  1022. do
  1023.   case $ac_arg in
  1024.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1025.   | --no-cr | --no-c | -n ) continue ;;
  1026.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1027.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1028.     continue ;;
  1029.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1030.     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1031.   esac
  1032.   case " $ac_configure_args " in
  1033.     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1034.     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1035.        ac_sep=" " ;;
  1036.   esac
  1037.   # Get rid of the leading space.
  1038. done
  1039.  
  1040. # When interrupted or exit'd, cleanup temporary files, and complete
  1041. # config.log.  We remove comments because anyway the quotes in there
  1042. # would cause problems or look ugly.
  1043. # WARNING: Be sure not to use single quotes in there, as some shells,
  1044. # such as our DU 5.0 friend, will then `close' the trap.
  1045. trap 'exit_status=$?
  1046.   # Save into config.log some information that might help in debugging.
  1047.   {
  1048.     echo
  1049.     cat <<\_ASBOX
  1050. ## ---------------- ##
  1051. ## Cache variables. ##
  1052. ## ---------------- ##
  1053. _ASBOX
  1054.     echo
  1055.     # The following way of writing the cache mishandles newlines in values,
  1056. {
  1057.   (set) 2>&1 |
  1058.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1059.     *ac_space=\ *)
  1060.       sed -n \
  1061.         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1062.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1063.       ;;
  1064.     *)
  1065.       sed -n \
  1066.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1067.       ;;
  1068.     esac;
  1069. }
  1070.     echo
  1071.     if test -s confdefs.h; then
  1072.       cat <<\_ASBOX
  1073. ## ----------- ##
  1074. ## confdefs.h. ##
  1075. ## ----------- ##
  1076. _ASBOX
  1077.       echo
  1078.       sed "/^$/d" confdefs.h
  1079.       echo
  1080.     fi
  1081.     test "$ac_signal" != 0 &&
  1082.       echo "$as_me: caught signal $ac_signal"
  1083.     echo "$as_me: exit $exit_status"
  1084.   } >&5
  1085.   rm -f core core.* *.core &&
  1086.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1087.     exit $exit_status
  1088.      ' 0
  1089. for ac_signal in 1 2 13 15; do
  1090.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1091. done
  1092. ac_signal=0
  1093.  
  1094. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1095. rm -rf conftest* confdefs.h
  1096. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1097. echo >confdefs.h
  1098.  
  1099. # Predefined preprocessor variables.
  1100.  
  1101. cat >>confdefs.h <<_ACEOF
  1102. #define PACKAGE_NAME "$PACKAGE_NAME"
  1103. _ACEOF
  1104.  
  1105.  
  1106. cat >>confdefs.h <<_ACEOF
  1107. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1108. _ACEOF
  1109.  
  1110.  
  1111. cat >>confdefs.h <<_ACEOF
  1112. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1113. _ACEOF
  1114.  
  1115.  
  1116. cat >>confdefs.h <<_ACEOF
  1117. #define PACKAGE_STRING "$PACKAGE_STRING"
  1118. _ACEOF
  1119.  
  1120.  
  1121. cat >>confdefs.h <<_ACEOF
  1122. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1123. _ACEOF
  1124.  
  1125.  
  1126. # Let the site file select an alternate cache file if it wants to.
  1127. # Prefer explicitly selected file to automatically selected ones.
  1128. if test -z "$CONFIG_SITE"; then
  1129.   if test "x$prefix" != xNONE; then
  1130.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1131.   else
  1132.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1133.   fi
  1134. fi
  1135. for ac_site_file in $CONFIG_SITE; do
  1136.   if test -r "$ac_site_file"; then
  1137.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1138. echo "$as_me: loading site script $ac_site_file" >&6;}
  1139.     sed 's/^/| /' "$ac_site_file" >&5
  1140.     . "$ac_site_file"
  1141.   fi
  1142. done
  1143.  
  1144. if test -r "$cache_file"; then
  1145.   # Some versions of bash will fail to source /dev/null (special
  1146.   # files actually), so we avoid doing that.
  1147.   if test -f "$cache_file"; then
  1148.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1149. echo "$as_me: loading cache $cache_file" >&6;}
  1150.     case $cache_file in
  1151.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1152.       *)                      . ./$cache_file;;
  1153.     esac
  1154.   fi
  1155. else
  1156.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1157. echo "$as_me: creating cache $cache_file" >&6;}
  1158.   >$cache_file
  1159. fi
  1160.  
  1161. # Check that the precious variables saved in the cache have kept the same
  1162. # value.
  1163. ac_cache_corrupted=false
  1164. for ac_var in `(set) 2>&1 |
  1165.                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1166.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1167.   eval ac_new_set=\$ac_env_${ac_var}_set
  1168.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1169.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1170.   case $ac_old_set,$ac_new_set in
  1171.     set,)
  1172.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1173. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1174.       ac_cache_corrupted=: ;;
  1175.     ,set)
  1176.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1177. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1178.       ac_cache_corrupted=: ;;
  1179.     ,);;
  1180.     *)
  1181.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1182.         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1183. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1184.         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1185. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1186.         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1187. echo "$as_me:   current value: $ac_new_val" >&2;}
  1188.         ac_cache_corrupted=:
  1189.       fi;;
  1190.   esac
  1191.   # Pass precious variables to config.status.
  1192.   if test "$ac_new_set" = set; then
  1193.     case $ac_new_val in
  1194.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1195.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1196.     *) ac_arg=$ac_var=$ac_new_val ;;
  1197.     esac
  1198.     case " $ac_configure_args " in
  1199.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1200.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1201.     esac
  1202.   fi
  1203. done
  1204. if $ac_cache_corrupted; then
  1205.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1206. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1207.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1208. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1209.    { (exit 1); exit 1; }; }
  1210. fi
  1211.  
  1212. ac_ext=c
  1213. ac_cpp='$CPP $CPPFLAGS'
  1214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235. ac_config_headers="$ac_config_headers aconf.h"
  1236.  
  1237.  
  1238. # Check whether --enable-a4-paper or --disable-a4-paper was given.
  1239. if test "${enable_a4_paper+set}" = set; then
  1240.   enableval="$enable_a4_paper"
  1241.   cat >>confdefs.h <<\_ACEOF
  1242. #define A4_PAPER 1
  1243. _ACEOF
  1244.  
  1245. fi;
  1246. # Check whether --enable-no-text-select or --disable-no-text-select was given.
  1247. if test "${enable_no_text_select+set}" = set; then
  1248.   enableval="$enable_no_text_select"
  1249.   cat >>confdefs.h <<\_ACEOF
  1250. #define NO_TEXT_SELECT 1
  1251. _ACEOF
  1252.  
  1253. fi;
  1254. # Check whether --enable-opi or --disable-opi was given.
  1255. if test "${enable_opi+set}" = set; then
  1256.   enableval="$enable_opi"
  1257.   cat >>confdefs.h <<\_ACEOF
  1258. #define OPI_SUPPORT 1
  1259. _ACEOF
  1260.  
  1261. fi;
  1262. # Check whether --enable-multithreaded or --disable-multithreaded was given.
  1263. if test "${enable_multithreaded+set}" = set; then
  1264.   enableval="$enable_multithreaded"
  1265.   cat >>confdefs.h <<\_ACEOF
  1266. #define MULTITHREADED 1
  1267. _ACEOF
  1268.  
  1269. fi;
  1270.  
  1271. # Check whether --with-appdef-dir or --without-appdef-dir was given.
  1272. if test "${with_appdef_dir+set}" = set; then
  1273.   withval="$with_appdef_dir"
  1274.   cat >>confdefs.h <<_ACEOF
  1275. #define APPDEFDIR "$with_appdef_dir"
  1276. _ACEOF
  1277.  
  1278. fi;
  1279.  
  1280. if test "$sysconfdir" = '${prefix}/etc'; then
  1281.   if test "x$prefix" = xNONE; then
  1282.     system_xpdfrc="$ac_default_prefix/etc/xpdfrc"
  1283.   else
  1284.     system_xpdfrc="$prefix/etc/xpdfrc"
  1285.   fi
  1286. else
  1287.   system_xpdfrc="$sysconfdir/xpdfrc"
  1288. fi
  1289. cat >>confdefs.h <<_ACEOF
  1290. #define SYSTEM_XPDFRC "$system_xpdfrc"
  1291. _ACEOF
  1292.  
  1293.  
  1294. ac_ext=c
  1295. ac_cpp='$CPP $CPPFLAGS'
  1296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1299. if test -n "$ac_tool_prefix"; then
  1300.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1301. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1302. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1303. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1304. if test "${ac_cv_prog_CC+set}" = set; then
  1305.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1306. else
  1307.   if test -n "$CC"; then
  1308.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1309. else
  1310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1311. for as_dir in $PATH
  1312. do
  1313.   IFS=$as_save_IFS
  1314.   test -z "$as_dir" && as_dir=.
  1315.   for ac_exec_ext in '' $ac_executable_extensions; do
  1316.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1317.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1318.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1319.     break 2
  1320.   fi
  1321. done
  1322. done
  1323.  
  1324. fi
  1325. fi
  1326. CC=$ac_cv_prog_CC
  1327. if test -n "$CC"; then
  1328.   echo "$as_me:$LINENO: result: $CC" >&5
  1329. echo "${ECHO_T}$CC" >&6
  1330. else
  1331.   echo "$as_me:$LINENO: result: no" >&5
  1332. echo "${ECHO_T}no" >&6
  1333. fi
  1334.  
  1335. fi
  1336. if test -z "$ac_cv_prog_CC"; then
  1337.   ac_ct_CC=$CC
  1338.   # Extract the first word of "gcc", so it can be a program name with args.
  1339. set dummy gcc; ac_word=$2
  1340. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1341. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1342. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1343.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1344. else
  1345.   if test -n "$ac_ct_CC"; then
  1346.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1347. else
  1348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1349. for as_dir in $PATH
  1350. do
  1351.   IFS=$as_save_IFS
  1352.   test -z "$as_dir" && as_dir=.
  1353.   for ac_exec_ext in '' $ac_executable_extensions; do
  1354.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1355.     ac_cv_prog_ac_ct_CC="gcc"
  1356.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1357.     break 2
  1358.   fi
  1359. done
  1360. done
  1361.  
  1362. fi
  1363. fi
  1364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1365. if test -n "$ac_ct_CC"; then
  1366.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1367. echo "${ECHO_T}$ac_ct_CC" >&6
  1368. else
  1369.   echo "$as_me:$LINENO: result: no" >&5
  1370. echo "${ECHO_T}no" >&6
  1371. fi
  1372.  
  1373.   CC=$ac_ct_CC
  1374. else
  1375.   CC="$ac_cv_prog_CC"
  1376. fi
  1377.  
  1378. if test -z "$CC"; then
  1379.   if test -n "$ac_tool_prefix"; then
  1380.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1381. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1382. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1384. if test "${ac_cv_prog_CC+set}" = set; then
  1385.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1386. else
  1387.   if test -n "$CC"; then
  1388.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1389. else
  1390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1391. for as_dir in $PATH
  1392. do
  1393.   IFS=$as_save_IFS
  1394.   test -z "$as_dir" && as_dir=.
  1395.   for ac_exec_ext in '' $ac_executable_extensions; do
  1396.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1397.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  1398.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1399.     break 2
  1400.   fi
  1401. done
  1402. done
  1403.  
  1404. fi
  1405. fi
  1406. CC=$ac_cv_prog_CC
  1407. if test -n "$CC"; then
  1408.   echo "$as_me:$LINENO: result: $CC" >&5
  1409. echo "${ECHO_T}$CC" >&6
  1410. else
  1411.   echo "$as_me:$LINENO: result: no" >&5
  1412. echo "${ECHO_T}no" >&6
  1413. fi
  1414.  
  1415. fi
  1416. if test -z "$ac_cv_prog_CC"; then
  1417.   ac_ct_CC=$CC
  1418.   # Extract the first word of "cc", so it can be a program name with args.
  1419. set dummy cc; ac_word=$2
  1420. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1421. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1422. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1423.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1424. else
  1425.   if test -n "$ac_ct_CC"; then
  1426.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1427. else
  1428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1429. for as_dir in $PATH
  1430. do
  1431.   IFS=$as_save_IFS
  1432.   test -z "$as_dir" && as_dir=.
  1433.   for ac_exec_ext in '' $ac_executable_extensions; do
  1434.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1435.     ac_cv_prog_ac_ct_CC="cc"
  1436.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1437.     break 2
  1438.   fi
  1439. done
  1440. done
  1441.  
  1442. fi
  1443. fi
  1444. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1445. if test -n "$ac_ct_CC"; then
  1446.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1447. echo "${ECHO_T}$ac_ct_CC" >&6
  1448. else
  1449.   echo "$as_me:$LINENO: result: no" >&5
  1450. echo "${ECHO_T}no" >&6
  1451. fi
  1452.  
  1453.   CC=$ac_ct_CC
  1454. else
  1455.   CC="$ac_cv_prog_CC"
  1456. fi
  1457.  
  1458. fi
  1459. if test -z "$CC"; then
  1460.   # Extract the first word of "cc", so it can be a program name with args.
  1461. set dummy cc; ac_word=$2
  1462. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1463. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1464. if test "${ac_cv_prog_CC+set}" = set; then
  1465.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1466. else
  1467.   if test -n "$CC"; then
  1468.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1469. else
  1470.   ac_prog_rejected=no
  1471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1472. for as_dir in $PATH
  1473. do
  1474.   IFS=$as_save_IFS
  1475.   test -z "$as_dir" && as_dir=.
  1476.   for ac_exec_ext in '' $ac_executable_extensions; do
  1477.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1478.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1479.        ac_prog_rejected=yes
  1480.        continue
  1481.      fi
  1482.     ac_cv_prog_CC="cc"
  1483.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1484.     break 2
  1485.   fi
  1486. done
  1487. done
  1488.  
  1489. if test $ac_prog_rejected = yes; then
  1490.   # We found a bogon in the path, so make sure we never use it.
  1491.   set dummy $ac_cv_prog_CC
  1492.   shift
  1493.   if test $# != 0; then
  1494.     # We chose a different compiler from the bogus one.
  1495.     # However, it has the same basename, so the bogon will be chosen
  1496.     # first if we set CC to just the basename; use the full file name.
  1497.     shift
  1498.     set dummy "$as_dir/$ac_word" ${1+"$@"}
  1499.     shift
  1500.     ac_cv_prog_CC="$@"
  1501.   fi
  1502. fi
  1503. fi
  1504. fi
  1505. CC=$ac_cv_prog_CC
  1506. if test -n "$CC"; then
  1507.   echo "$as_me:$LINENO: result: $CC" >&5
  1508. echo "${ECHO_T}$CC" >&6
  1509. else
  1510.   echo "$as_me:$LINENO: result: no" >&5
  1511. echo "${ECHO_T}no" >&6
  1512. fi
  1513.  
  1514. fi
  1515. if test -z "$CC"; then
  1516.   if test -n "$ac_tool_prefix"; then
  1517.   for ac_prog in cl
  1518.   do
  1519.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1520. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1521. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1522. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1523. if test "${ac_cv_prog_CC+set}" = set; then
  1524.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1525. else
  1526.   if test -n "$CC"; then
  1527.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1528. else
  1529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1530. for as_dir in $PATH
  1531. do
  1532.   IFS=$as_save_IFS
  1533.   test -z "$as_dir" && as_dir=.
  1534.   for ac_exec_ext in '' $ac_executable_extensions; do
  1535.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1536.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1537.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1538.     break 2
  1539.   fi
  1540. done
  1541. done
  1542.  
  1543. fi
  1544. fi
  1545. CC=$ac_cv_prog_CC
  1546. if test -n "$CC"; then
  1547.   echo "$as_me:$LINENO: result: $CC" >&5
  1548. echo "${ECHO_T}$CC" >&6
  1549. else
  1550.   echo "$as_me:$LINENO: result: no" >&5
  1551. echo "${ECHO_T}no" >&6
  1552. fi
  1553.  
  1554.     test -n "$CC" && break
  1555.   done
  1556. fi
  1557. if test -z "$CC"; then
  1558.   ac_ct_CC=$CC
  1559.   for ac_prog in cl
  1560. do
  1561.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1562. set dummy $ac_prog; ac_word=$2
  1563. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1564. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1565. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1566.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1567. else
  1568.   if test -n "$ac_ct_CC"; then
  1569.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1570. else
  1571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1572. for as_dir in $PATH
  1573. do
  1574.   IFS=$as_save_IFS
  1575.   test -z "$as_dir" && as_dir=.
  1576.   for ac_exec_ext in '' $ac_executable_extensions; do
  1577.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1578.     ac_cv_prog_ac_ct_CC="$ac_prog"
  1579.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1580.     break 2
  1581.   fi
  1582. done
  1583. done
  1584.  
  1585. fi
  1586. fi
  1587. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1588. if test -n "$ac_ct_CC"; then
  1589.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1590. echo "${ECHO_T}$ac_ct_CC" >&6
  1591. else
  1592.   echo "$as_me:$LINENO: result: no" >&5
  1593. echo "${ECHO_T}no" >&6
  1594. fi
  1595.  
  1596.   test -n "$ac_ct_CC" && break
  1597. done
  1598.  
  1599.   CC=$ac_ct_CC
  1600. fi
  1601.  
  1602. fi
  1603.  
  1604.  
  1605. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  1606. echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  1607.    { (exit 1); exit 1; }; }
  1608.  
  1609. # Provide some information about the compiler.
  1610. echo "$as_me:$LINENO:" \
  1611.      "checking for C compiler version" >&5
  1612. ac_compiler=`set X $ac_compile; echo $2`
  1613. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1614.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  1615.   ac_status=$?
  1616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1617.   (exit $ac_status); }
  1618. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1619.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  1620.   ac_status=$?
  1621.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1622.   (exit $ac_status); }
  1623. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1624.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  1625.   ac_status=$?
  1626.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1627.   (exit $ac_status); }
  1628.  
  1629. cat >conftest.$ac_ext <<_ACEOF
  1630. #line $LINENO "configure"
  1631. #include "confdefs.h"
  1632.  
  1633. #ifdef F77_DUMMY_MAIN
  1634. #  ifdef __cplusplus
  1635.      extern "C"
  1636. #  endif
  1637.    int F77_DUMMY_MAIN() { return 1; }
  1638. #endif
  1639. int
  1640. main ()
  1641. {
  1642.  
  1643.   ;
  1644.   return 0;
  1645. }
  1646. _ACEOF
  1647. ac_clean_files_save=$ac_clean_files
  1648. ac_clean_files="$ac_clean_files a.out a.exe"
  1649. # Try to create an executable without -o first, disregard a.out.
  1650. # It will help us diagnose broken compilers, and finding out an intuition
  1651. # of exeext.
  1652. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1653. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1654. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1655. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1656.   (eval $ac_link_default) 2>&5
  1657.   ac_status=$?
  1658.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1659.   (exit $ac_status); }; then
  1660.   # Find the output, starting from the most likely.  This scheme is
  1661. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1662. # resort.
  1663.  
  1664. # Be careful to initialize this variable, since it used to be cached.
  1665. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1666. ac_cv_exeext=
  1667. for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
  1668.                 ls a.out conftest 2>/dev/null;
  1669.                 ls a.* conftest.* 2>/dev/null`; do
  1670.   case $ac_file in
  1671.     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
  1672.     a.out ) # We found the default executable, but exeext='' is most
  1673.             # certainly right.
  1674.             break;;
  1675.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1676.           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1677.           export ac_cv_exeext
  1678.           break;;
  1679.     * ) break;;
  1680.   esac
  1681. done
  1682. else
  1683.   echo "$as_me: failed program was:" >&5
  1684. cat conftest.$ac_ext >&5
  1685. { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
  1686. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1687.    { (exit 77); exit 77; }; }
  1688. fi
  1689.  
  1690. ac_exeext=$ac_cv_exeext
  1691. echo "$as_me:$LINENO: result: $ac_file" >&5
  1692. echo "${ECHO_T}$ac_file" >&6
  1693.  
  1694. # Check the compiler produces executables we can run.  If not, either
  1695. # the compiler is broken, or we cross compile.
  1696. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1697. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1698. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1699. # If not cross compiling, check that we can run a simple program.
  1700. if test "$cross_compiling" != yes; then
  1701.   if { ac_try='./$ac_file'
  1702.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1703.   (eval $ac_try) 2>&5
  1704.   ac_status=$?
  1705.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1706.   (exit $ac_status); }; }; then
  1707.     cross_compiling=no
  1708.   else
  1709.     if test "$cross_compiling" = maybe; then
  1710.     cross_compiling=yes
  1711.     else
  1712.     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1713. If you meant to cross compile, use \`--host'." >&5
  1714. echo "$as_me: error: cannot run C compiled programs.
  1715. If you meant to cross compile, use \`--host'." >&2;}
  1716.    { (exit 1); exit 1; }; }
  1717.     fi
  1718.   fi
  1719. fi
  1720. echo "$as_me:$LINENO: result: yes" >&5
  1721. echo "${ECHO_T}yes" >&6
  1722.  
  1723. rm -f a.out a.exe conftest$ac_cv_exeext
  1724. ac_clean_files=$ac_clean_files_save
  1725. # Check the compiler produces executables we can run.  If not, either
  1726. # the compiler is broken, or we cross compile.
  1727. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1728. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1729. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1730. echo "${ECHO_T}$cross_compiling" >&6
  1731.  
  1732. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1733. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1734. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1735.   (eval $ac_link) 2>&5
  1736.   ac_status=$?
  1737.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1738.   (exit $ac_status); }; then
  1739.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1740. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  1741. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1742. # `rm'.
  1743. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1744.   case $ac_file in
  1745.     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1746.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1747.           export ac_cv_exeext
  1748.           break;;
  1749.     * ) break;;
  1750.   esac
  1751. done
  1752. else
  1753.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  1754. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  1755.    { (exit 1); exit 1; }; }
  1756. fi
  1757.  
  1758. rm -f conftest$ac_cv_exeext
  1759. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1760. echo "${ECHO_T}$ac_cv_exeext" >&6
  1761.  
  1762. rm -f conftest.$ac_ext
  1763. EXEEXT=$ac_cv_exeext
  1764. ac_exeext=$EXEEXT
  1765. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1766. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1767. if test "${ac_cv_objext+set}" = set; then
  1768.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1769. else
  1770.   cat >conftest.$ac_ext <<_ACEOF
  1771. #line $LINENO "configure"
  1772. #include "confdefs.h"
  1773.  
  1774. #ifdef F77_DUMMY_MAIN
  1775. #  ifdef __cplusplus
  1776.      extern "C"
  1777. #  endif
  1778.    int F77_DUMMY_MAIN() { return 1; }
  1779. #endif
  1780. int
  1781. main ()
  1782. {
  1783.  
  1784.   ;
  1785.   return 0;
  1786. }
  1787. _ACEOF
  1788. rm -f conftest.o conftest.obj
  1789. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1790.   (eval $ac_compile) 2>&5
  1791.   ac_status=$?
  1792.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1793.   (exit $ac_status); }; then
  1794.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1795.   case $ac_file in
  1796.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1797.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1798.        break;;
  1799.   esac
  1800. done
  1801. else
  1802.   echo "$as_me: failed program was:" >&5
  1803. cat conftest.$ac_ext >&5
  1804. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  1805. echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  1806.    { (exit 1); exit 1; }; }
  1807. fi
  1808.  
  1809. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1810. fi
  1811. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1812. echo "${ECHO_T}$ac_cv_objext" >&6
  1813. OBJEXT=$ac_cv_objext
  1814. ac_objext=$OBJEXT
  1815. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1816. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1817. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1818.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1819. else
  1820.   cat >conftest.$ac_ext <<_ACEOF
  1821. #line $LINENO "configure"
  1822. #include "confdefs.h"
  1823.  
  1824. #ifdef F77_DUMMY_MAIN
  1825. #  ifdef __cplusplus
  1826.      extern "C"
  1827. #  endif
  1828.    int F77_DUMMY_MAIN() { return 1; }
  1829. #endif
  1830. int
  1831. main ()
  1832. {
  1833. #ifndef __GNUC__
  1834.        choke me
  1835. #endif
  1836.  
  1837.   ;
  1838.   return 0;
  1839. }
  1840. _ACEOF
  1841. rm -f conftest.$ac_objext
  1842. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1843.   (eval $ac_compile) 2>&5
  1844.   ac_status=$?
  1845.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1846.   (exit $ac_status); } &&
  1847.          { ac_try='test -s conftest.$ac_objext'
  1848.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1849.   (eval $ac_try) 2>&5
  1850.   ac_status=$?
  1851.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852.   (exit $ac_status); }; }; then
  1853.   ac_compiler_gnu=yes
  1854. else
  1855.   echo "$as_me: failed program was:" >&5
  1856. cat conftest.$ac_ext >&5
  1857. ac_compiler_gnu=no
  1858. fi
  1859. rm -f conftest.$ac_objext conftest.$ac_ext
  1860. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1861.  
  1862. fi
  1863. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1864. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1865. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1866. ac_test_CFLAGS=${CFLAGS+set}
  1867. ac_save_CFLAGS=$CFLAGS
  1868. CFLAGS="-g"
  1869. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1870. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1871. if test "${ac_cv_prog_cc_g+set}" = set; then
  1872.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1873. else
  1874.   cat >conftest.$ac_ext <<_ACEOF
  1875. #line $LINENO "configure"
  1876. #include "confdefs.h"
  1877.  
  1878. #ifdef F77_DUMMY_MAIN
  1879. #  ifdef __cplusplus
  1880.      extern "C"
  1881. #  endif
  1882.    int F77_DUMMY_MAIN() { return 1; }
  1883. #endif
  1884. int
  1885. main ()
  1886. {
  1887.  
  1888.   ;
  1889.   return 0;
  1890. }
  1891. _ACEOF
  1892. rm -f conftest.$ac_objext
  1893. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1894.   (eval $ac_compile) 2>&5
  1895.   ac_status=$?
  1896.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1897.   (exit $ac_status); } &&
  1898.          { ac_try='test -s conftest.$ac_objext'
  1899.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1900.   (eval $ac_try) 2>&5
  1901.   ac_status=$?
  1902.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903.   (exit $ac_status); }; }; then
  1904.   ac_cv_prog_cc_g=yes
  1905. else
  1906.   echo "$as_me: failed program was:" >&5
  1907. cat conftest.$ac_ext >&5
  1908. ac_cv_prog_cc_g=no
  1909. fi
  1910. rm -f conftest.$ac_objext conftest.$ac_ext
  1911. fi
  1912. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1913. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1914. if test "$ac_test_CFLAGS" = set; then
  1915.   CFLAGS=$ac_save_CFLAGS
  1916. elif test $ac_cv_prog_cc_g = yes; then
  1917.   if test "$GCC" = yes; then
  1918.     CFLAGS="-g -O2"
  1919.   else
  1920.     CFLAGS="-g"
  1921.   fi
  1922. else
  1923.   if test "$GCC" = yes; then
  1924.     CFLAGS="-O2"
  1925.   else
  1926.     CFLAGS=
  1927.   fi
  1928. fi
  1929. # Some people use a C++ compiler to compile C.  Since we use `exit',
  1930. # in C++ we need to declare it.  In case someone uses the same compiler
  1931. # for both compiling C and C++ we need to have the C++ compiler decide
  1932. # the declaration of exit, since it's the most demanding environment.
  1933. cat >conftest.$ac_ext <<_ACEOF
  1934. #ifndef __cplusplus
  1935.   choke me
  1936. #endif
  1937. _ACEOF
  1938. rm -f conftest.$ac_objext
  1939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1940.   (eval $ac_compile) 2>&5
  1941.   ac_status=$?
  1942.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1943.   (exit $ac_status); } &&
  1944.          { ac_try='test -s conftest.$ac_objext'
  1945.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1946.   (eval $ac_try) 2>&5
  1947.   ac_status=$?
  1948.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1949.   (exit $ac_status); }; }; then
  1950.   for ac_declaration in \
  1951.    ''\
  1952.    '#include <stdlib.h>' \
  1953.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  1954.    'extern "C" void std::exit (int); using std::exit;' \
  1955.    'extern "C" void exit (int) throw ();' \
  1956.    'extern "C" void exit (int);' \
  1957.    'void exit (int);'
  1958. do
  1959.   cat >conftest.$ac_ext <<_ACEOF
  1960. #line $LINENO "configure"
  1961. #include "confdefs.h"
  1962. #include <stdlib.h>
  1963. $ac_declaration
  1964. #ifdef F77_DUMMY_MAIN
  1965. #  ifdef __cplusplus
  1966.      extern "C"
  1967. #  endif
  1968.    int F77_DUMMY_MAIN() { return 1; }
  1969. #endif
  1970. int
  1971. main ()
  1972. {
  1973. exit (42);
  1974.   ;
  1975.   return 0;
  1976. }
  1977. _ACEOF
  1978. rm -f conftest.$ac_objext
  1979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1980.   (eval $ac_compile) 2>&5
  1981.   ac_status=$?
  1982.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1983.   (exit $ac_status); } &&
  1984.          { ac_try='test -s conftest.$ac_objext'
  1985.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1986.   (eval $ac_try) 2>&5
  1987.   ac_status=$?
  1988.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1989.   (exit $ac_status); }; }; then
  1990.   :
  1991. else
  1992.   echo "$as_me: failed program was:" >&5
  1993. cat conftest.$ac_ext >&5
  1994. continue
  1995. fi
  1996. rm -f conftest.$ac_objext conftest.$ac_ext
  1997.   cat >conftest.$ac_ext <<_ACEOF
  1998. #line $LINENO "configure"
  1999. #include "confdefs.h"
  2000. $ac_declaration
  2001. #ifdef F77_DUMMY_MAIN
  2002. #  ifdef __cplusplus
  2003.      extern "C"
  2004. #  endif
  2005.    int F77_DUMMY_MAIN() { return 1; }
  2006. #endif
  2007. int
  2008. main ()
  2009. {
  2010. exit (42);
  2011.   ;
  2012.   return 0;
  2013. }
  2014. _ACEOF
  2015. rm -f conftest.$ac_objext
  2016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2017.   (eval $ac_compile) 2>&5
  2018.   ac_status=$?
  2019.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2020.   (exit $ac_status); } &&
  2021.          { ac_try='test -s conftest.$ac_objext'
  2022.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2023.   (eval $ac_try) 2>&5
  2024.   ac_status=$?
  2025.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2026.   (exit $ac_status); }; }; then
  2027.   break
  2028. else
  2029.   echo "$as_me: failed program was:" >&5
  2030. cat conftest.$ac_ext >&5
  2031. fi
  2032. rm -f conftest.$ac_objext conftest.$ac_ext
  2033. done
  2034. rm -f conftest*
  2035. if test -n "$ac_declaration"; then
  2036.   echo '#ifdef __cplusplus' >>confdefs.h
  2037.   echo $ac_declaration      >>confdefs.h
  2038.   echo '#endif'             >>confdefs.h
  2039. fi
  2040.  
  2041. else
  2042.   echo "$as_me: failed program was:" >&5
  2043. cat conftest.$ac_ext >&5
  2044. fi
  2045. rm -f conftest.$ac_objext conftest.$ac_ext
  2046. ac_ext=c
  2047. ac_cpp='$CPP $CPPFLAGS'
  2048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2051.  
  2052.  
  2053. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2054. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2055. if test "${ac_cv_search_strerror+set}" = set; then
  2056.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2057. else
  2058.   ac_func_search_save_LIBS=$LIBS
  2059. ac_cv_search_strerror=no
  2060. cat >conftest.$ac_ext <<_ACEOF
  2061. #line $LINENO "configure"
  2062. #include "confdefs.h"
  2063.  
  2064. /* Override any gcc2 internal prototype to avoid an error.  */
  2065. #ifdef __cplusplus
  2066. extern "C"
  2067. #endif
  2068. /* We use char because int might match the return type of a gcc2
  2069.    builtin and then its argument prototype would still apply.  */
  2070. char strerror ();
  2071. #ifdef F77_DUMMY_MAIN
  2072. #  ifdef __cplusplus
  2073.      extern "C"
  2074. #  endif
  2075.    int F77_DUMMY_MAIN() { return 1; }
  2076. #endif
  2077. int
  2078. main ()
  2079. {
  2080. strerror ();
  2081.   ;
  2082.   return 0;
  2083. }
  2084. _ACEOF
  2085. rm -f conftest.$ac_objext conftest$ac_exeext
  2086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2087.   (eval $ac_link) 2>&5
  2088.   ac_status=$?
  2089.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090.   (exit $ac_status); } &&
  2091.          { ac_try='test -s conftest$ac_exeext'
  2092.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2093.   (eval $ac_try) 2>&5
  2094.   ac_status=$?
  2095.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096.   (exit $ac_status); }; }; then
  2097.   ac_cv_search_strerror="none required"
  2098. else
  2099.   echo "$as_me: failed program was:" >&5
  2100. cat conftest.$ac_ext >&5
  2101. fi
  2102. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2103. if test "$ac_cv_search_strerror" = no; then
  2104.   for ac_lib in cposix; do
  2105.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  2106.     cat >conftest.$ac_ext <<_ACEOF
  2107. #line $LINENO "configure"
  2108. #include "confdefs.h"
  2109.  
  2110. /* Override any gcc2 internal prototype to avoid an error.  */
  2111. #ifdef __cplusplus
  2112. extern "C"
  2113. #endif
  2114. /* We use char because int might match the return type of a gcc2
  2115.    builtin and then its argument prototype would still apply.  */
  2116. char strerror ();
  2117. #ifdef F77_DUMMY_MAIN
  2118. #  ifdef __cplusplus
  2119.      extern "C"
  2120. #  endif
  2121.    int F77_DUMMY_MAIN() { return 1; }
  2122. #endif
  2123. int
  2124. main ()
  2125. {
  2126. strerror ();
  2127.   ;
  2128.   return 0;
  2129. }
  2130. _ACEOF
  2131. rm -f conftest.$ac_objext conftest$ac_exeext
  2132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2133.   (eval $ac_link) 2>&5
  2134.   ac_status=$?
  2135.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2136.   (exit $ac_status); } &&
  2137.          { ac_try='test -s conftest$ac_exeext'
  2138.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2139.   (eval $ac_try) 2>&5
  2140.   ac_status=$?
  2141.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2142.   (exit $ac_status); }; }; then
  2143.   ac_cv_search_strerror="-l$ac_lib"
  2144. break
  2145. else
  2146.   echo "$as_me: failed program was:" >&5
  2147. cat conftest.$ac_ext >&5
  2148. fi
  2149. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2150.   done
  2151. fi
  2152. LIBS=$ac_func_search_save_LIBS
  2153. fi
  2154. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2155. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2156. if test "$ac_cv_search_strerror" != no; then
  2157.   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2158.  
  2159. fi
  2160.  
  2161. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2162. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2163. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2164.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2165. else
  2166.   ac_cv_prog_cc_stdc=no
  2167. ac_save_CC=$CC
  2168. cat >conftest.$ac_ext <<_ACEOF
  2169. #line $LINENO "configure"
  2170. #include "confdefs.h"
  2171. #include <stdarg.h>
  2172. #include <stdio.h>
  2173. #include <sys/types.h>
  2174. #include <sys/stat.h>
  2175. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2176. struct buf { int x; };
  2177. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2178. static char *e (p, i)
  2179.      char **p;
  2180.      int i;
  2181. {
  2182.   return p[i];
  2183. }
  2184. static char *f (char * (*g) (char **, int), char **p, ...)
  2185. {
  2186.   char *s;
  2187.   va_list v;
  2188.   va_start (v,p);
  2189.   s = g (p, va_arg (v,int));
  2190.   va_end (v);
  2191.   return s;
  2192. }
  2193. int test (int i, double x);
  2194. struct s1 {int (*f) (int a);};
  2195. struct s2 {int (*f) (double a);};
  2196. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2197. int argc;
  2198. char **argv;
  2199. #ifdef F77_DUMMY_MAIN
  2200. #  ifdef __cplusplus
  2201.      extern "C"
  2202. #  endif
  2203.    int F77_DUMMY_MAIN() { return 1; }
  2204. #endif
  2205. int
  2206. main ()
  2207. {
  2208. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2209.   ;
  2210.   return 0;
  2211. }
  2212. _ACEOF
  2213. # Don't try gcc -ansi; that turns off useful extensions and
  2214. # breaks some systems' header files.
  2215. # AIX            -qlanglvl=ansi
  2216. # Ultrix and OSF/1    -std1
  2217. # HP-UX 10.20 and later    -Ae
  2218. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  2219. # SVR4            -Xc -D__EXTENSIONS__
  2220. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2221. do
  2222.   CC="$ac_save_CC $ac_arg"
  2223.   rm -f conftest.$ac_objext
  2224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2225.   (eval $ac_compile) 2>&5
  2226.   ac_status=$?
  2227.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228.   (exit $ac_status); } &&
  2229.          { ac_try='test -s conftest.$ac_objext'
  2230.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2231.   (eval $ac_try) 2>&5
  2232.   ac_status=$?
  2233.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2234.   (exit $ac_status); }; }; then
  2235.   ac_cv_prog_cc_stdc=$ac_arg
  2236. break
  2237. else
  2238.   echo "$as_me: failed program was:" >&5
  2239. cat conftest.$ac_ext >&5
  2240. fi
  2241. rm -f conftest.$ac_objext
  2242. done
  2243. rm -f conftest.$ac_ext conftest.$ac_objext
  2244. CC=$ac_save_CC
  2245.  
  2246. fi
  2247.  
  2248. case "x$ac_cv_prog_cc_stdc" in
  2249.   x|xno)
  2250.     echo "$as_me:$LINENO: result: none needed" >&5
  2251. echo "${ECHO_T}none needed" >&6 ;;
  2252.   *)
  2253.     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2254. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2255.     CC="$CC $ac_cv_prog_cc_stdc" ;;
  2256. esac
  2257.  
  2258. #if test -z "$CXX" -a "$CC" = "gcc"; then
  2259. #  CXX="gcc"
  2260. #fi
  2261. ac_ext=cc
  2262. ac_cpp='$CXXCPP $CPPFLAGS'
  2263. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2264. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2265. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2266. if test -n "$ac_tool_prefix"; then
  2267.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2268.   do
  2269.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2271. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2273. if test "${ac_cv_prog_CXX+set}" = set; then
  2274.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2275. else
  2276.   if test -n "$CXX"; then
  2277.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282.   IFS=$as_save_IFS
  2283.   test -z "$as_dir" && as_dir=.
  2284.   for ac_exec_ext in '' $ac_executable_extensions; do
  2285.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2286.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2287.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288.     break 2
  2289.   fi
  2290. done
  2291. done
  2292.  
  2293. fi
  2294. fi
  2295. CXX=$ac_cv_prog_CXX
  2296. if test -n "$CXX"; then
  2297.   echo "$as_me:$LINENO: result: $CXX" >&5
  2298. echo "${ECHO_T}$CXX" >&6
  2299. else
  2300.   echo "$as_me:$LINENO: result: no" >&5
  2301. echo "${ECHO_T}no" >&6
  2302. fi
  2303.  
  2304.     test -n "$CXX" && break
  2305.   done
  2306. fi
  2307. if test -z "$CXX"; then
  2308.   ac_ct_CXX=$CXX
  2309.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2310. do
  2311.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2312. set dummy $ac_prog; ac_word=$2
  2313. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2314. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2315. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2316.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2317. else
  2318.   if test -n "$ac_ct_CXX"; then
  2319.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2320. else
  2321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322. for as_dir in $PATH
  2323. do
  2324.   IFS=$as_save_IFS
  2325.   test -z "$as_dir" && as_dir=.
  2326.   for ac_exec_ext in '' $ac_executable_extensions; do
  2327.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2328.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  2329.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330.     break 2
  2331.   fi
  2332. done
  2333. done
  2334.  
  2335. fi
  2336. fi
  2337. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2338. if test -n "$ac_ct_CXX"; then
  2339.   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2340. echo "${ECHO_T}$ac_ct_CXX" >&6
  2341. else
  2342.   echo "$as_me:$LINENO: result: no" >&5
  2343. echo "${ECHO_T}no" >&6
  2344. fi
  2345.  
  2346.   test -n "$ac_ct_CXX" && break
  2347. done
  2348. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2349.  
  2350.   CXX=$ac_ct_CXX
  2351. fi
  2352.  
  2353.  
  2354. # Provide some information about the compiler.
  2355. echo "$as_me:$LINENO:" \
  2356.      "checking for C++ compiler version" >&5
  2357. ac_compiler=`set X $ac_compile; echo $2`
  2358. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2359.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2360.   ac_status=$?
  2361.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2362.   (exit $ac_status); }
  2363. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2364.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2365.   ac_status=$?
  2366.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2367.   (exit $ac_status); }
  2368. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2369.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2370.   ac_status=$?
  2371.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2372.   (exit $ac_status); }
  2373.  
  2374. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2375. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2376. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2377.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2378. else
  2379.   cat >conftest.$ac_ext <<_ACEOF
  2380. #line $LINENO "configure"
  2381. #include "confdefs.h"
  2382.  
  2383. #ifdef F77_DUMMY_MAIN
  2384. #  ifdef __cplusplus
  2385.      extern "C"
  2386. #  endif
  2387.    int F77_DUMMY_MAIN() { return 1; }
  2388. #endif
  2389. int
  2390. main ()
  2391. {
  2392. #ifndef __GNUC__
  2393.        choke me
  2394. #endif
  2395.  
  2396.   ;
  2397.   return 0;
  2398. }
  2399. _ACEOF
  2400. rm -f conftest.$ac_objext
  2401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2402.   (eval $ac_compile) 2>&5
  2403.   ac_status=$?
  2404.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2405.   (exit $ac_status); } &&
  2406.          { ac_try='test -s conftest.$ac_objext'
  2407.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2408.   (eval $ac_try) 2>&5
  2409.   ac_status=$?
  2410.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411.   (exit $ac_status); }; }; then
  2412.   ac_compiler_gnu=yes
  2413. else
  2414.   echo "$as_me: failed program was:" >&5
  2415. cat conftest.$ac_ext >&5
  2416. ac_compiler_gnu=no
  2417. fi
  2418. rm -f conftest.$ac_objext conftest.$ac_ext
  2419. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2420.  
  2421. fi
  2422. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2423. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2424. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2425. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2426. ac_save_CXXFLAGS=$CXXFLAGS
  2427. CXXFLAGS="-g"
  2428. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2429. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2430. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2431.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2432. else
  2433.   cat >conftest.$ac_ext <<_ACEOF
  2434. #line $LINENO "configure"
  2435. #include "confdefs.h"
  2436.  
  2437. #ifdef F77_DUMMY_MAIN
  2438. #  ifdef __cplusplus
  2439.      extern "C"
  2440. #  endif
  2441.    int F77_DUMMY_MAIN() { return 1; }
  2442. #endif
  2443. int
  2444. main ()
  2445. {
  2446.  
  2447.   ;
  2448.   return 0;
  2449. }
  2450. _ACEOF
  2451. rm -f conftest.$ac_objext
  2452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2453.   (eval $ac_compile) 2>&5
  2454.   ac_status=$?
  2455.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2456.   (exit $ac_status); } &&
  2457.          { ac_try='test -s conftest.$ac_objext'
  2458.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2459.   (eval $ac_try) 2>&5
  2460.   ac_status=$?
  2461.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2462.   (exit $ac_status); }; }; then
  2463.   ac_cv_prog_cxx_g=yes
  2464. else
  2465.   echo "$as_me: failed program was:" >&5
  2466. cat conftest.$ac_ext >&5
  2467. ac_cv_prog_cxx_g=no
  2468. fi
  2469. rm -f conftest.$ac_objext conftest.$ac_ext
  2470. fi
  2471. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2472. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2473. if test "$ac_test_CXXFLAGS" = set; then
  2474.   CXXFLAGS=$ac_save_CXXFLAGS
  2475. elif test $ac_cv_prog_cxx_g = yes; then
  2476.   if test "$GXX" = yes; then
  2477.     CXXFLAGS="-g -O2"
  2478.   else
  2479.     CXXFLAGS="-g"
  2480.   fi
  2481. else
  2482.   if test "$GXX" = yes; then
  2483.     CXXFLAGS="-O2"
  2484.   else
  2485.     CXXFLAGS=
  2486.   fi
  2487. fi
  2488. for ac_declaration in \
  2489.    ''\
  2490.    '#include <stdlib.h>' \
  2491.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2492.    'extern "C" void std::exit (int); using std::exit;' \
  2493.    'extern "C" void exit (int) throw ();' \
  2494.    'extern "C" void exit (int);' \
  2495.    'void exit (int);'
  2496. do
  2497.   cat >conftest.$ac_ext <<_ACEOF
  2498. #line $LINENO "configure"
  2499. #include "confdefs.h"
  2500. #include <stdlib.h>
  2501. $ac_declaration
  2502. #ifdef F77_DUMMY_MAIN
  2503. #  ifdef __cplusplus
  2504.      extern "C"
  2505. #  endif
  2506.    int F77_DUMMY_MAIN() { return 1; }
  2507. #endif
  2508. int
  2509. main ()
  2510. {
  2511. exit (42);
  2512.   ;
  2513.   return 0;
  2514. }
  2515. _ACEOF
  2516. rm -f conftest.$ac_objext
  2517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2518.   (eval $ac_compile) 2>&5
  2519.   ac_status=$?
  2520.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2521.   (exit $ac_status); } &&
  2522.          { ac_try='test -s conftest.$ac_objext'
  2523.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2524.   (eval $ac_try) 2>&5
  2525.   ac_status=$?
  2526.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527.   (exit $ac_status); }; }; then
  2528.   :
  2529. else
  2530.   echo "$as_me: failed program was:" >&5
  2531. cat conftest.$ac_ext >&5
  2532. continue
  2533. fi
  2534. rm -f conftest.$ac_objext conftest.$ac_ext
  2535.   cat >conftest.$ac_ext <<_ACEOF
  2536. #line $LINENO "configure"
  2537. #include "confdefs.h"
  2538. $ac_declaration
  2539. #ifdef F77_DUMMY_MAIN
  2540. #  ifdef __cplusplus
  2541.      extern "C"
  2542. #  endif
  2543.    int F77_DUMMY_MAIN() { return 1; }
  2544. #endif
  2545. int
  2546. main ()
  2547. {
  2548. exit (42);
  2549.   ;
  2550.   return 0;
  2551. }
  2552. _ACEOF
  2553. rm -f conftest.$ac_objext
  2554. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2555.   (eval $ac_compile) 2>&5
  2556.   ac_status=$?
  2557.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2558.   (exit $ac_status); } &&
  2559.          { ac_try='test -s conftest.$ac_objext'
  2560.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2561.   (eval $ac_try) 2>&5
  2562.   ac_status=$?
  2563.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564.   (exit $ac_status); }; }; then
  2565.   break
  2566. else
  2567.   echo "$as_me: failed program was:" >&5
  2568. cat conftest.$ac_ext >&5
  2569. fi
  2570. rm -f conftest.$ac_objext conftest.$ac_ext
  2571. done
  2572. rm -f conftest*
  2573. if test -n "$ac_declaration"; then
  2574.   echo '#ifdef __cplusplus' >>confdefs.h
  2575.   echo $ac_declaration      >>confdefs.h
  2576.   echo '#endif'             >>confdefs.h
  2577. fi
  2578.  
  2579. ac_ext=c
  2580. ac_cpp='$CPP $CPPFLAGS'
  2581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2584.  
  2585. ac_aux_dir=
  2586. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2587.   if test -f $ac_dir/install-sh; then
  2588.     ac_aux_dir=$ac_dir
  2589.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2590.     break
  2591.   elif test -f $ac_dir/install.sh; then
  2592.     ac_aux_dir=$ac_dir
  2593.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2594.     break
  2595.   elif test -f $ac_dir/shtool; then
  2596.     ac_aux_dir=$ac_dir
  2597.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2598.     break
  2599.   fi
  2600. done
  2601. if test -z "$ac_aux_dir"; then
  2602.   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  2603. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  2604.    { (exit 1); exit 1; }; }
  2605. fi
  2606. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2607. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2608. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2609.  
  2610. # Find a good install program.  We prefer a C program (faster),
  2611. # so one script is as good as another.  But avoid the broken or
  2612. # incompatible versions:
  2613. # SysV /etc/install, /usr/sbin/install
  2614. # SunOS /usr/etc/install
  2615. # IRIX /sbin/install
  2616. # AIX /bin/install
  2617. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2618. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2619. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2620. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2621. # ./install, which can be erroneously created by make from ./install.sh.
  2622. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2623. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2624. if test -z "$INSTALL"; then
  2625. if test "${ac_cv_path_install+set}" = set; then
  2626.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2627. else
  2628.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2629. for as_dir in $PATH
  2630. do
  2631.   IFS=$as_save_IFS
  2632.   test -z "$as_dir" && as_dir=.
  2633.   # Account for people who put trailing slashes in PATH elements.
  2634. case $as_dir/ in
  2635.   ./ | .// | /cC/* | \
  2636.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2637.   /usr/ucb/* ) ;;
  2638.   *)
  2639.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2640.     # Don't use installbsd from OSF since it installs stuff as root
  2641.     # by default.
  2642.     for ac_prog in ginstall scoinst install; do
  2643.       for ac_exec_ext in '' $ac_executable_extensions; do
  2644.         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2645.           if test $ac_prog = install &&
  2646.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2647.             # AIX install.  It has an incompatible calling convention.
  2648.             :
  2649.           elif test $ac_prog = install &&
  2650.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2651.             # program-specific install script used by HP pwplus--don't use.
  2652.             :
  2653.           else
  2654.             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2655.             break 3
  2656.           fi
  2657.         fi
  2658.       done
  2659.     done
  2660.     ;;
  2661. esac
  2662. done
  2663.  
  2664.  
  2665. fi
  2666.   if test "${ac_cv_path_install+set}" = set; then
  2667.     INSTALL=$ac_cv_path_install
  2668.   else
  2669.     # As a last resort, use the slow shell script.  We don't cache a
  2670.     # path for INSTALL within a source directory, because that will
  2671.     # break other packages using the cache if that directory is
  2672.     # removed, or if the path is relative.
  2673.     INSTALL=$ac_install_sh
  2674.   fi
  2675. fi
  2676. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2677. echo "${ECHO_T}$INSTALL" >&6
  2678.  
  2679. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2680. # It thinks the first close brace ends the variable substitution.
  2681. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2682.  
  2683. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2684.  
  2685. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2686.  
  2687. if test -n "$ac_tool_prefix"; then
  2688.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2689. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2690. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2692. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2693.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2694. else
  2695.   if test -n "$RANLIB"; then
  2696.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2697. else
  2698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2699. for as_dir in $PATH
  2700. do
  2701.   IFS=$as_save_IFS
  2702.   test -z "$as_dir" && as_dir=.
  2703.   for ac_exec_ext in '' $ac_executable_extensions; do
  2704.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2705.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2706.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2707.     break 2
  2708.   fi
  2709. done
  2710. done
  2711.  
  2712. fi
  2713. fi
  2714. RANLIB=$ac_cv_prog_RANLIB
  2715. if test -n "$RANLIB"; then
  2716.   echo "$as_me:$LINENO: result: $RANLIB" >&5
  2717. echo "${ECHO_T}$RANLIB" >&6
  2718. else
  2719.   echo "$as_me:$LINENO: result: no" >&5
  2720. echo "${ECHO_T}no" >&6
  2721. fi
  2722.  
  2723. fi
  2724. if test -z "$ac_cv_prog_RANLIB"; then
  2725.   ac_ct_RANLIB=$RANLIB
  2726.   # Extract the first word of "ranlib", so it can be a program name with args.
  2727. set dummy ranlib; ac_word=$2
  2728. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2730. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2731.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2732. else
  2733.   if test -n "$ac_ct_RANLIB"; then
  2734.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739.   IFS=$as_save_IFS
  2740.   test -z "$as_dir" && as_dir=.
  2741.   for ac_exec_ext in '' $ac_executable_extensions; do
  2742.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  2744.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745.     break 2
  2746.   fi
  2747. done
  2748. done
  2749.  
  2750.   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2751. fi
  2752. fi
  2753. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2754. if test -n "$ac_ct_RANLIB"; then
  2755.   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2756. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2757. else
  2758.   echo "$as_me:$LINENO: result: no" >&5
  2759. echo "${ECHO_T}no" >&6
  2760. fi
  2761.  
  2762.   RANLIB=$ac_ct_RANLIB
  2763. else
  2764.   RANLIB="$ac_cv_prog_RANLIB"
  2765. fi
  2766.  
  2767.  
  2768. EXE=""
  2769. LIBPREFIX="lib"
  2770. AR="ar rc"
  2771. UP_DIR=""
  2772.  
  2773. echo "$as_me:$LINENO: checking for OS/2 (with EMX)" >&5
  2774. echo $ECHO_N "checking for OS/2 (with EMX)... $ECHO_C" >&6
  2775. if test "${xpdf_cv_sys_os2+set}" = set; then
  2776.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2777. else
  2778.   cat >conftest.$ac_ext <<_ACEOF
  2779. #line $LINENO "configure"
  2780. #include "confdefs.h"
  2781.  
  2782. #ifdef F77_DUMMY_MAIN
  2783. #  ifdef __cplusplus
  2784.      extern "C"
  2785. #  endif
  2786.    int F77_DUMMY_MAIN() { return 1; }
  2787. #endif
  2788. int
  2789. main ()
  2790. {
  2791. __EMX__
  2792.   ;
  2793.   return 0;
  2794. }
  2795. _ACEOF
  2796. rm -f conftest.$ac_objext
  2797. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2798.   (eval $ac_compile) 2>&5
  2799.   ac_status=$?
  2800.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801.   (exit $ac_status); } &&
  2802.          { ac_try='test -s conftest.$ac_objext'
  2803.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2804.   (eval $ac_try) 2>&5
  2805.   ac_status=$?
  2806.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807.   (exit $ac_status); }; }; then
  2808.   xpdf_cv_sys_os2=yes
  2809. else
  2810.   echo "$as_me: failed program was:" >&5
  2811. cat conftest.$ac_ext >&5
  2812. xpdf_cv_sys_os2=no
  2813. fi
  2814. rm -f conftest.$ac_objext conftest.$ac_ext
  2815. fi
  2816. echo "$as_me:$LINENO: result: $xpdf_cv_sys_os2" >&5
  2817. echo "${ECHO_T}$xpdf_cv_sys_os2" >&6
  2818. if test "$xpdf_cv_sys_os2" = yes; then
  2819.   EXE=".exe"
  2820.   LIBPREFIX=""
  2821.   AR="ar -rc"
  2822. fi
  2823.  
  2824. echo "$as_me:$LINENO: checking for DOS (with DJGPP)" >&5
  2825. echo $ECHO_N "checking for DOS (with DJGPP)... $ECHO_C" >&6
  2826. if test "${xpdf_cv_sys_dos+set}" = set; then
  2827.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829.   cat >conftest.$ac_ext <<_ACEOF
  2830. #line $LINENO "configure"
  2831. #include "confdefs.h"
  2832.  
  2833. #ifdef F77_DUMMY_MAIN
  2834. #  ifdef __cplusplus
  2835.      extern "C"
  2836. #  endif
  2837.    int F77_DUMMY_MAIN() { return 1; }
  2838. #endif
  2839. int
  2840. main ()
  2841. {
  2842. __DJGPP__
  2843.   ;
  2844.   return 0;
  2845. }
  2846. _ACEOF
  2847. rm -f conftest.$ac_objext
  2848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2849.   (eval $ac_compile) 2>&5
  2850.   ac_status=$?
  2851.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852.   (exit $ac_status); } &&
  2853.          { ac_try='test -s conftest.$ac_objext'
  2854.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855.   (eval $ac_try) 2>&5
  2856.   ac_status=$?
  2857.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858.   (exit $ac_status); }; }; then
  2859.   xpdf_cv_sys_dos=yes
  2860. else
  2861.   echo "$as_me: failed program was:" >&5
  2862. cat conftest.$ac_ext >&5
  2863. xpdf_cv_sys_dos=no
  2864. fi
  2865. rm -f conftest.$ac_objext conftest.$ac_ext
  2866. fi
  2867. echo "$as_me:$LINENO: result: $xpdf_cv_sys_dos" >&5
  2868. echo "${ECHO_T}$xpdf_cv_sys_dos" >&6
  2869. if test "$xpdf_cv_sys_dos" = yes; then
  2870.   EXE=".exe"
  2871.   LIBPREFIX="lib"
  2872.   AR="ar -rc"
  2873.   UP_DIR="../"
  2874. fi
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881. ac_ext=c
  2882. ac_cpp='$CPP $CPPFLAGS'
  2883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2886. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2887. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2888. # On Suns, sometimes $CPP names a directory.
  2889. if test -n "$CPP" && test -d "$CPP"; then
  2890.   CPP=
  2891. fi
  2892. if test -z "$CPP"; then
  2893.   if test "${ac_cv_prog_CPP+set}" = set; then
  2894.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2895. else
  2896.       # Double quotes because CPP needs to be expanded
  2897.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2898.     do
  2899.       ac_preproc_ok=false
  2900. for ac_c_preproc_warn_flag in '' yes
  2901. do
  2902.   # Use a header file that comes with gcc, so configuring glibc
  2903.   # with a fresh cross-compiler works.
  2904.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2905.   # not just through cpp. "Syntax error" is here to catch this case.
  2906.   cat >conftest.$ac_ext <<_ACEOF
  2907. #line $LINENO "configure"
  2908. #include "confdefs.h"
  2909. #include <assert.h>
  2910.                      Syntax error
  2911. _ACEOF
  2912. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2913.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2914.   ac_status=$?
  2915.   egrep -v '^ *\+' conftest.er1 >conftest.err
  2916.   rm -f conftest.er1
  2917.   cat conftest.err >&5
  2918.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2919.   (exit $ac_status); } >/dev/null; then
  2920.   if test -s conftest.err; then
  2921.     ac_cpp_err=$ac_c_preproc_warn_flag
  2922.   else
  2923.     ac_cpp_err=
  2924.   fi
  2925. else
  2926.   ac_cpp_err=yes
  2927. fi
  2928. if test -z "$ac_cpp_err"; then
  2929.   :
  2930. else
  2931.   echo "$as_me: failed program was:" >&5
  2932.   cat conftest.$ac_ext >&5
  2933.   # Broken: fails on valid input.
  2934. continue
  2935. fi
  2936. rm -f conftest.err conftest.$ac_ext
  2937.  
  2938.   # OK, works on sane cases.  Now check whether non-existent headers
  2939.   # can be detected and how.
  2940.   cat >conftest.$ac_ext <<_ACEOF
  2941. #line $LINENO "configure"
  2942. #include "confdefs.h"
  2943. #include <ac_nonexistent.h>
  2944. _ACEOF
  2945. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2946.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2947.   ac_status=$?
  2948.   egrep -v '^ *\+' conftest.er1 >conftest.err
  2949.   rm -f conftest.er1
  2950.   cat conftest.err >&5
  2951.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2952.   (exit $ac_status); } >/dev/null; then
  2953.   if test -s conftest.err; then
  2954.     ac_cpp_err=$ac_c_preproc_warn_flag
  2955.   else
  2956.     ac_cpp_err=
  2957.   fi
  2958. else
  2959.   ac_cpp_err=yes
  2960. fi
  2961. if test -z "$ac_cpp_err"; then
  2962.   # Broken: success on invalid input.
  2963. continue
  2964. else
  2965.   echo "$as_me: failed program was:" >&5
  2966.   cat conftest.$ac_ext >&5
  2967.   # Passes both tests.
  2968. ac_preproc_ok=:
  2969. break
  2970. fi
  2971. rm -f conftest.err conftest.$ac_ext
  2972.  
  2973. done
  2974. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2975. rm -f conftest.err conftest.$ac_ext
  2976. if $ac_preproc_ok; then
  2977.   break
  2978. fi
  2979.  
  2980.     done
  2981.     ac_cv_prog_CPP=$CPP
  2982.  
  2983. fi
  2984.   CPP=$ac_cv_prog_CPP
  2985. else
  2986.   ac_cv_prog_CPP=$CPP
  2987. fi
  2988. echo "$as_me:$LINENO: result: $CPP" >&5
  2989. echo "${ECHO_T}$CPP" >&6
  2990. ac_preproc_ok=false
  2991. for ac_c_preproc_warn_flag in '' yes
  2992. do
  2993.   # Use a header file that comes with gcc, so configuring glibc
  2994.   # with a fresh cross-compiler works.
  2995.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2996.   # not just through cpp. "Syntax error" is here to catch this case.
  2997.   cat >conftest.$ac_ext <<_ACEOF
  2998. #line $LINENO "configure"
  2999. #include "confdefs.h"
  3000. #include <assert.h>
  3001.                      Syntax error
  3002. _ACEOF
  3003. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3004.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3005.   ac_status=$?
  3006.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3007.   rm -f conftest.er1
  3008.   cat conftest.err >&5
  3009.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010.   (exit $ac_status); } >/dev/null; then
  3011.   if test -s conftest.err; then
  3012.     ac_cpp_err=$ac_c_preproc_warn_flag
  3013.   else
  3014.     ac_cpp_err=
  3015.   fi
  3016. else
  3017.   ac_cpp_err=yes
  3018. fi
  3019. if test -z "$ac_cpp_err"; then
  3020.   :
  3021. else
  3022.   echo "$as_me: failed program was:" >&5
  3023.   cat conftest.$ac_ext >&5
  3024.   # Broken: fails on valid input.
  3025. continue
  3026. fi
  3027. rm -f conftest.err conftest.$ac_ext
  3028.  
  3029.   # OK, works on sane cases.  Now check whether non-existent headers
  3030.   # can be detected and how.
  3031.   cat >conftest.$ac_ext <<_ACEOF
  3032. #line $LINENO "configure"
  3033. #include "confdefs.h"
  3034. #include <ac_nonexistent.h>
  3035. _ACEOF
  3036. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3037.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3038.   ac_status=$?
  3039.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3040.   rm -f conftest.er1
  3041.   cat conftest.err >&5
  3042.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3043.   (exit $ac_status); } >/dev/null; then
  3044.   if test -s conftest.err; then
  3045.     ac_cpp_err=$ac_c_preproc_warn_flag
  3046.   else
  3047.     ac_cpp_err=
  3048.   fi
  3049. else
  3050.   ac_cpp_err=yes
  3051. fi
  3052. if test -z "$ac_cpp_err"; then
  3053.   # Broken: success on invalid input.
  3054. continue
  3055. else
  3056.   echo "$as_me: failed program was:" >&5
  3057.   cat conftest.$ac_ext >&5
  3058.   # Passes both tests.
  3059. ac_preproc_ok=:
  3060. break
  3061. fi
  3062. rm -f conftest.err conftest.$ac_ext
  3063.  
  3064. done
  3065. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3066. rm -f conftest.err conftest.$ac_ext
  3067. if $ac_preproc_ok; then
  3068.   :
  3069. else
  3070.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  3071. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  3072.    { (exit 1); exit 1; }; }
  3073. fi
  3074.  
  3075. ac_ext=c
  3076. ac_cpp='$CPP $CPPFLAGS'
  3077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3080.  
  3081.  
  3082. echo "$as_me:$LINENO: checking for X" >&5
  3083. echo $ECHO_N "checking for X... $ECHO_C" >&6
  3084.  
  3085.  
  3086. # Check whether --with-x or --without-x was given.
  3087. if test "${with_x+set}" = set; then
  3088.   withval="$with_x"
  3089.  
  3090. fi;
  3091. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3092. if test "x$with_x" = xno; then
  3093.   # The user explicitly disabled X.
  3094.   have_x=disabled
  3095. else
  3096.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3097.     # Both variables are already set.
  3098.     have_x=yes
  3099.   else
  3100.     if test "${ac_cv_have_x+set}" = set; then
  3101.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3102. else
  3103.   # One or both of the vars are not set, and there is no cached value.
  3104. ac_x_includes=no ac_x_libraries=no
  3105. rm -fr conftest.dir
  3106. if mkdir conftest.dir; then
  3107.   cd conftest.dir
  3108.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3109.   cat >Imakefile <<'_ACEOF'
  3110. acfindx:
  3111.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3112. _ACEOF
  3113.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3114.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3115.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3116.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3117.     for ac_extension in a so sl; do
  3118.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3119.          test -f $ac_im_libdir/libX11.$ac_extension; then
  3120.         ac_im_usrlibdir=$ac_im_libdir; break
  3121.       fi
  3122.     done
  3123.     # Screen out bogus values from the imake configuration.  They are
  3124.     # bogus both because they are the default anyway, and because
  3125.     # using them would break gcc on systems where it needs fixed includes.
  3126.     case $ac_im_incroot in
  3127.     /usr/include) ;;
  3128.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3129.     esac
  3130.     case $ac_im_usrlibdir in
  3131.     /usr/lib | /lib) ;;
  3132.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3133.     esac
  3134.   fi
  3135.   cd ..
  3136.   rm -fr conftest.dir
  3137. fi
  3138.  
  3139. # Standard set of common directories for X headers.
  3140. # Check X11 before X11Rn because it is often a symlink to the current release.
  3141. ac_x_header_dirs='
  3142. /usr/X11/include
  3143. /usr/X11R6/include
  3144. /usr/X11R5/include
  3145. /usr/X11R4/include
  3146.  
  3147. /usr/include/X11
  3148. /usr/include/X11R6
  3149. /usr/include/X11R5
  3150. /usr/include/X11R4
  3151.  
  3152. /usr/local/X11/include
  3153. /usr/local/X11R6/include
  3154. /usr/local/X11R5/include
  3155. /usr/local/X11R4/include
  3156.  
  3157. /usr/local/include/X11
  3158. /usr/local/include/X11R6
  3159. /usr/local/include/X11R5
  3160. /usr/local/include/X11R4
  3161.  
  3162. /usr/X386/include
  3163. /usr/x386/include
  3164. /usr/XFree86/include/X11
  3165.  
  3166. /usr/include
  3167. /usr/local/include
  3168. /usr/unsupported/include
  3169. /usr/athena/include
  3170. /usr/local/x11r5/include
  3171. /usr/lpp/Xamples/include
  3172.  
  3173. /usr/openwin/include
  3174. /usr/openwin/share/include'
  3175.  
  3176. if test "$ac_x_includes" = no; then
  3177.   # Guess where to find include files, by looking for Intrinsic.h.
  3178.   # First, try using that file with no special directory specified.
  3179.   cat >conftest.$ac_ext <<_ACEOF
  3180. #line $LINENO "configure"
  3181. #include "confdefs.h"
  3182. #include <X11/Intrinsic.h>
  3183. _ACEOF
  3184. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3185.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3186.   ac_status=$?
  3187.   egrep -v '^ *\+' conftest.er1 >conftest.err
  3188.   rm -f conftest.er1
  3189.   cat conftest.err >&5
  3190.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3191.   (exit $ac_status); } >/dev/null; then
  3192.   if test -s conftest.err; then
  3193.     ac_cpp_err=$ac_c_preproc_warn_flag
  3194.   else
  3195.     ac_cpp_err=
  3196.   fi
  3197. else
  3198.   ac_cpp_err=yes
  3199. fi
  3200. if test -z "$ac_cpp_err"; then
  3201.   # We can compile using X headers with no special include directory.
  3202. ac_x_includes=
  3203. else
  3204.   echo "$as_me: failed program was:" >&5
  3205.   cat conftest.$ac_ext >&5
  3206.   for ac_dir in $ac_x_header_dirs; do
  3207.   if test -r "$ac_dir/X11/Intrinsic.h"; then
  3208.     ac_x_includes=$ac_dir
  3209.     break
  3210.   fi
  3211. done
  3212. fi
  3213. rm -f conftest.err conftest.$ac_ext
  3214. fi # $ac_x_includes = no
  3215.  
  3216. if test "$ac_x_libraries" = no; then
  3217.   # Check for the libraries.
  3218.   # See if we find them without any special options.
  3219.   # Don't add to $LIBS permanently.
  3220.   ac_save_LIBS=$LIBS
  3221.   LIBS="-lXt $LIBS"
  3222.   cat >conftest.$ac_ext <<_ACEOF
  3223. #line $LINENO "configure"
  3224. #include "confdefs.h"
  3225. #include <X11/Intrinsic.h>
  3226. #ifdef F77_DUMMY_MAIN
  3227. #  ifdef __cplusplus
  3228.      extern "C"
  3229. #  endif
  3230.    int F77_DUMMY_MAIN() { return 1; }
  3231. #endif
  3232. int
  3233. main ()
  3234. {
  3235. XtMalloc (0)
  3236.   ;
  3237.   return 0;
  3238. }
  3239. _ACEOF
  3240. rm -f conftest.$ac_objext conftest$ac_exeext
  3241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3242.   (eval $ac_link) 2>&5
  3243.   ac_status=$?
  3244.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3245.   (exit $ac_status); } &&
  3246.          { ac_try='test -s conftest$ac_exeext'
  3247.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3248.   (eval $ac_try) 2>&5
  3249.   ac_status=$?
  3250.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3251.   (exit $ac_status); }; }; then
  3252.   LIBS=$ac_save_LIBS
  3253. # We can link X programs with no special library path.
  3254. ac_x_libraries=
  3255. else
  3256.   echo "$as_me: failed program was:" >&5
  3257. cat conftest.$ac_ext >&5
  3258. LIBS=$ac_save_LIBS
  3259. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3260. do
  3261.   # Don't even attempt the hair of trying to link an X program!
  3262.   for ac_extension in a so sl; do
  3263.     if test -r $ac_dir/libXt.$ac_extension; then
  3264.       ac_x_libraries=$ac_dir
  3265.       break 2
  3266.     fi
  3267.   done
  3268. done
  3269. fi
  3270. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3271. fi # $ac_x_libraries = no
  3272.  
  3273. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  3274.   # Didn't find X anywhere.  Cache the known absence of X.
  3275.   ac_cv_have_x="have_x=no"
  3276. else
  3277.   # Record where we found X for the cache.
  3278.   ac_cv_have_x="have_x=yes \
  3279.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3280. fi
  3281. fi
  3282.  
  3283.   fi
  3284.   eval "$ac_cv_have_x"
  3285. fi # $with_x != no
  3286.  
  3287. if test "$have_x" != yes; then
  3288.   echo "$as_me:$LINENO: result: $have_x" >&5
  3289. echo "${ECHO_T}$have_x" >&6
  3290.   no_x=yes
  3291. else
  3292.   # If each of the values was on the command line, it overrides each guess.
  3293.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3294.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3295.   # Update the cache value to reflect the command line values.
  3296.   ac_cv_have_x="have_x=yes \
  3297.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3298.   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  3299. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  3300. fi
  3301.  
  3302. if test "$no_x" = yes; then
  3303.   # Not all programs may use this symbol, but it does not hurt to define it.
  3304.  
  3305. cat >>confdefs.h <<\_ACEOF
  3306. #define X_DISPLAY_MISSING 1
  3307. _ACEOF
  3308.  
  3309.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3310. else
  3311.   if test -n "$x_includes"; then
  3312.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  3313.   fi
  3314.  
  3315.   # It would also be nice to do this for all -L options, not just this one.
  3316.   if test -n "$x_libraries"; then
  3317.     X_LIBS="$X_LIBS -L$x_libraries"
  3318.     # For Solaris; some versions of Sun CC require a space after -R and
  3319.     # others require no space.  Words are not sufficient . . . .
  3320.     case `(uname -sr) 2>/dev/null` in
  3321.     "SunOS 5"*)
  3322.       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  3323. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  3324.       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  3325.       cat >conftest.$ac_ext <<_ACEOF
  3326. #line $LINENO "configure"
  3327. #include "confdefs.h"
  3328.  
  3329. #ifdef F77_DUMMY_MAIN
  3330. #  ifdef __cplusplus
  3331.      extern "C"
  3332. #  endif
  3333.    int F77_DUMMY_MAIN() { return 1; }
  3334. #endif
  3335. int
  3336. main ()
  3337. {
  3338.  
  3339.   ;
  3340.   return 0;
  3341. }
  3342. _ACEOF
  3343. rm -f conftest.$ac_objext conftest$ac_exeext
  3344. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3345.   (eval $ac_link) 2>&5
  3346.   ac_status=$?
  3347.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3348.   (exit $ac_status); } &&
  3349.          { ac_try='test -s conftest$ac_exeext'
  3350.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3351.   (eval $ac_try) 2>&5
  3352.   ac_status=$?
  3353.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3354.   (exit $ac_status); }; }; then
  3355.   ac_R_nospace=yes
  3356. else
  3357.   echo "$as_me: failed program was:" >&5
  3358. cat conftest.$ac_ext >&5
  3359. ac_R_nospace=no
  3360. fi
  3361. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3362.       if test $ac_R_nospace = yes; then
  3363.     echo "$as_me:$LINENO: result: no" >&5
  3364. echo "${ECHO_T}no" >&6
  3365.     X_LIBS="$X_LIBS -R$x_libraries"
  3366.       else
  3367.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  3368.     cat >conftest.$ac_ext <<_ACEOF
  3369. #line $LINENO "configure"
  3370. #include "confdefs.h"
  3371.  
  3372. #ifdef F77_DUMMY_MAIN
  3373. #  ifdef __cplusplus
  3374.      extern "C"
  3375. #  endif
  3376.    int F77_DUMMY_MAIN() { return 1; }
  3377. #endif
  3378. int
  3379. main ()
  3380. {
  3381.  
  3382.   ;
  3383.   return 0;
  3384. }
  3385. _ACEOF
  3386. rm -f conftest.$ac_objext conftest$ac_exeext
  3387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3388.   (eval $ac_link) 2>&5
  3389.   ac_status=$?
  3390.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3391.   (exit $ac_status); } &&
  3392.          { ac_try='test -s conftest$ac_exeext'
  3393.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3394.   (eval $ac_try) 2>&5
  3395.   ac_status=$?
  3396.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3397.   (exit $ac_status); }; }; then
  3398.   ac_R_space=yes
  3399. else
  3400.   echo "$as_me: failed program was:" >&5
  3401. cat conftest.$ac_ext >&5
  3402. ac_R_space=no
  3403. fi
  3404. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3405.     if test $ac_R_space = yes; then
  3406.       echo "$as_me:$LINENO: result: yes" >&5
  3407. echo "${ECHO_T}yes" >&6
  3408.       X_LIBS="$X_LIBS -R $x_libraries"
  3409.     else
  3410.       echo "$as_me:$LINENO: result: neither works" >&5
  3411. echo "${ECHO_T}neither works" >&6
  3412.     fi
  3413.       fi
  3414.       LIBS=$ac_xsave_LIBS
  3415.     esac
  3416.   fi
  3417.  
  3418.   # Check for system-dependent libraries X programs must link with.
  3419.   # Do this before checking for the system-independent R6 libraries
  3420.   # (-lICE), since we may need -lsocket or whatever for X linking.
  3421.  
  3422.   if test "$ISC" = yes; then
  3423.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3424.   else
  3425.     # Martyn Johnson says this is needed for Ultrix, if the X
  3426.     # libraries were built with DECnet support.  And Karl Berry says
  3427.     # the Alpha needs dnet_stub (dnet does not exist).
  3428.     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  3429.     cat >conftest.$ac_ext <<_ACEOF
  3430. #line $LINENO "configure"
  3431. #include "confdefs.h"
  3432.  
  3433. /* Override any gcc2 internal prototype to avoid an error.  */
  3434. #ifdef __cplusplus
  3435. extern "C"
  3436. #endif
  3437. /* We use char because int might match the return type of a gcc2
  3438.    builtin and then its argument prototype would still apply.  */
  3439. char XOpenDisplay ();
  3440. #ifdef F77_DUMMY_MAIN
  3441. #  ifdef __cplusplus
  3442.      extern "C"
  3443. #  endif
  3444.    int F77_DUMMY_MAIN() { return 1; }
  3445. #endif
  3446. int
  3447. main ()
  3448. {
  3449. XOpenDisplay ();
  3450.   ;
  3451.   return 0;
  3452. }
  3453. _ACEOF
  3454. rm -f conftest.$ac_objext conftest$ac_exeext
  3455. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3456.   (eval $ac_link) 2>&5
  3457.   ac_status=$?
  3458.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459.   (exit $ac_status); } &&
  3460.          { ac_try='test -s conftest$ac_exeext'
  3461.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3462.   (eval $ac_try) 2>&5
  3463.   ac_status=$?
  3464.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3465.   (exit $ac_status); }; }; then
  3466.   :
  3467. else
  3468.   echo "$as_me: failed program was:" >&5
  3469. cat conftest.$ac_ext >&5
  3470. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  3471. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  3472. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  3473.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3474. else
  3475.   ac_check_lib_save_LIBS=$LIBS
  3476. LIBS="-ldnet  $LIBS"
  3477. cat >conftest.$ac_ext <<_ACEOF
  3478. #line $LINENO "configure"
  3479. #include "confdefs.h"
  3480.  
  3481. /* Override any gcc2 internal prototype to avoid an error.  */
  3482. #ifdef __cplusplus
  3483. extern "C"
  3484. #endif
  3485. /* We use char because int might match the return type of a gcc2
  3486.    builtin and then its argument prototype would still apply.  */
  3487. char dnet_ntoa ();
  3488. #ifdef F77_DUMMY_MAIN
  3489. #  ifdef __cplusplus
  3490.      extern "C"
  3491. #  endif
  3492.    int F77_DUMMY_MAIN() { return 1; }
  3493. #endif
  3494. int
  3495. main ()
  3496. {
  3497. dnet_ntoa ();
  3498.   ;
  3499.   return 0;
  3500. }
  3501. _ACEOF
  3502. rm -f conftest.$ac_objext conftest$ac_exeext
  3503. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3504.   (eval $ac_link) 2>&5
  3505.   ac_status=$?
  3506.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507.   (exit $ac_status); } &&
  3508.          { ac_try='test -s conftest$ac_exeext'
  3509.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3510.   (eval $ac_try) 2>&5
  3511.   ac_status=$?
  3512.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513.   (exit $ac_status); }; }; then
  3514.   ac_cv_lib_dnet_dnet_ntoa=yes
  3515. else
  3516.   echo "$as_me: failed program was:" >&5
  3517. cat conftest.$ac_ext >&5
  3518. ac_cv_lib_dnet_dnet_ntoa=no
  3519. fi
  3520. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3521. LIBS=$ac_check_lib_save_LIBS
  3522. fi
  3523. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  3524. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  3525. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  3526.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3527. fi
  3528.  
  3529.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3530.       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  3531. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  3532. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  3533.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3534. else
  3535.   ac_check_lib_save_LIBS=$LIBS
  3536. LIBS="-ldnet_stub  $LIBS"
  3537. cat >conftest.$ac_ext <<_ACEOF
  3538. #line $LINENO "configure"
  3539. #include "confdefs.h"
  3540.  
  3541. /* Override any gcc2 internal prototype to avoid an error.  */
  3542. #ifdef __cplusplus
  3543. extern "C"
  3544. #endif
  3545. /* We use char because int might match the return type of a gcc2
  3546.    builtin and then its argument prototype would still apply.  */
  3547. char dnet_ntoa ();
  3548. #ifdef F77_DUMMY_MAIN
  3549. #  ifdef __cplusplus
  3550.      extern "C"
  3551. #  endif
  3552.    int F77_DUMMY_MAIN() { return 1; }
  3553. #endif
  3554. int
  3555. main ()
  3556. {
  3557. dnet_ntoa ();
  3558.   ;
  3559.   return 0;
  3560. }
  3561. _ACEOF
  3562. rm -f conftest.$ac_objext conftest$ac_exeext
  3563. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3564.   (eval $ac_link) 2>&5
  3565.   ac_status=$?
  3566.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567.   (exit $ac_status); } &&
  3568.          { ac_try='test -s conftest$ac_exeext'
  3569.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3570.   (eval $ac_try) 2>&5
  3571.   ac_status=$?
  3572.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573.   (exit $ac_status); }; }; then
  3574.   ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3575. else
  3576.   echo "$as_me: failed program was:" >&5
  3577. cat conftest.$ac_ext >&5
  3578. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3579. fi
  3580. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3581. LIBS=$ac_check_lib_save_LIBS
  3582. fi
  3583. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3584. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  3585. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  3586.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3587. fi
  3588.  
  3589.     fi
  3590. fi
  3591. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3592.     LIBS="$ac_xsave_LIBS"
  3593.  
  3594.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3595.     # to get the SysV transport functions.
  3596.     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3597.     # needs -lnsl.
  3598.     # The nsl library prevents programs from opening the X display
  3599.     # on Irix 5.2, according to T.E. Dickey.
  3600.     # The functions gethostbyname, getservbyname, and inet_addr are
  3601.     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3602.     echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3603. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3604. if test "${ac_cv_func_gethostbyname+set}" = set; then
  3605.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3606. else
  3607.   cat >conftest.$ac_ext <<_ACEOF
  3608. #line $LINENO "configure"
  3609. #include "confdefs.h"
  3610. /* System header to define __stub macros and hopefully few prototypes,
  3611.     which can conflict with char gethostbyname (); below.  */
  3612. #include <assert.h>
  3613. /* Override any gcc2 internal prototype to avoid an error.  */
  3614. #ifdef __cplusplus
  3615. extern "C"
  3616. #endif
  3617. /* We use char because int might match the return type of a gcc2
  3618.    builtin and then its argument prototype would still apply.  */
  3619. char gethostbyname ();
  3620. char (*f) ();
  3621.  
  3622. #ifdef F77_DUMMY_MAIN
  3623. #  ifdef __cplusplus
  3624.      extern "C"
  3625. #  endif
  3626.    int F77_DUMMY_MAIN() { return 1; }
  3627. #endif
  3628. int
  3629. main ()
  3630. {
  3631. /* The GNU C library defines this for functions which it implements
  3632.     to always fail with ENOSYS.  Some functions are actually named
  3633.     something starting with __ and the normal name is an alias.  */
  3634. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3635. choke me
  3636. #else
  3637. f = gethostbyname;
  3638. #endif
  3639.  
  3640.   ;
  3641.   return 0;
  3642. }
  3643. _ACEOF
  3644. rm -f conftest.$ac_objext conftest$ac_exeext
  3645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3646.   (eval $ac_link) 2>&5
  3647.   ac_status=$?
  3648.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649.   (exit $ac_status); } &&
  3650.          { ac_try='test -s conftest$ac_exeext'
  3651.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3652.   (eval $ac_try) 2>&5
  3653.   ac_status=$?
  3654.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655.   (exit $ac_status); }; }; then
  3656.   ac_cv_func_gethostbyname=yes
  3657. else
  3658.   echo "$as_me: failed program was:" >&5
  3659. cat conftest.$ac_ext >&5
  3660. ac_cv_func_gethostbyname=no
  3661. fi
  3662. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3663. fi
  3664. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3665. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3666.  
  3667.     if test $ac_cv_func_gethostbyname = no; then
  3668.       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3669. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3670. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3671.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3672. else
  3673.   ac_check_lib_save_LIBS=$LIBS
  3674. LIBS="-lnsl  $LIBS"
  3675. cat >conftest.$ac_ext <<_ACEOF
  3676. #line $LINENO "configure"
  3677. #include "confdefs.h"
  3678.  
  3679. /* Override any gcc2 internal prototype to avoid an error.  */
  3680. #ifdef __cplusplus
  3681. extern "C"
  3682. #endif
  3683. /* We use char because int might match the return type of a gcc2
  3684.    builtin and then its argument prototype would still apply.  */
  3685. char gethostbyname ();
  3686. #ifdef F77_DUMMY_MAIN
  3687. #  ifdef __cplusplus
  3688.      extern "C"
  3689. #  endif
  3690.    int F77_DUMMY_MAIN() { return 1; }
  3691. #endif
  3692. int
  3693. main ()
  3694. {
  3695. gethostbyname ();
  3696.   ;
  3697.   return 0;
  3698. }
  3699. _ACEOF
  3700. rm -f conftest.$ac_objext conftest$ac_exeext
  3701. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3702.   (eval $ac_link) 2>&5
  3703.   ac_status=$?
  3704.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705.   (exit $ac_status); } &&
  3706.          { ac_try='test -s conftest$ac_exeext'
  3707.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3708.   (eval $ac_try) 2>&5
  3709.   ac_status=$?
  3710.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3711.   (exit $ac_status); }; }; then
  3712.   ac_cv_lib_nsl_gethostbyname=yes
  3713. else
  3714.   echo "$as_me: failed program was:" >&5
  3715. cat conftest.$ac_ext >&5
  3716. ac_cv_lib_nsl_gethostbyname=no
  3717. fi
  3718. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3719. LIBS=$ac_check_lib_save_LIBS
  3720. fi
  3721. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3722. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3723. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3724.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3725. fi
  3726.  
  3727.       if test $ac_cv_lib_nsl_gethostbyname = no; then
  3728.         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  3729. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  3730. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  3731.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3732. else
  3733.   ac_check_lib_save_LIBS=$LIBS
  3734. LIBS="-lbsd  $LIBS"
  3735. cat >conftest.$ac_ext <<_ACEOF
  3736. #line $LINENO "configure"
  3737. #include "confdefs.h"
  3738.  
  3739. /* Override any gcc2 internal prototype to avoid an error.  */
  3740. #ifdef __cplusplus
  3741. extern "C"
  3742. #endif
  3743. /* We use char because int might match the return type of a gcc2
  3744.    builtin and then its argument prototype would still apply.  */
  3745. char gethostbyname ();
  3746. #ifdef F77_DUMMY_MAIN
  3747. #  ifdef __cplusplus
  3748.      extern "C"
  3749. #  endif
  3750.    int F77_DUMMY_MAIN() { return 1; }
  3751. #endif
  3752. int
  3753. main ()
  3754. {
  3755. gethostbyname ();
  3756.   ;
  3757.   return 0;
  3758. }
  3759. _ACEOF
  3760. rm -f conftest.$ac_objext conftest$ac_exeext
  3761. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3762.   (eval $ac_link) 2>&5
  3763.   ac_status=$?
  3764.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3765.   (exit $ac_status); } &&
  3766.          { ac_try='test -s conftest$ac_exeext'
  3767.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3768.   (eval $ac_try) 2>&5
  3769.   ac_status=$?
  3770.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3771.   (exit $ac_status); }; }; then
  3772.   ac_cv_lib_bsd_gethostbyname=yes
  3773. else
  3774.   echo "$as_me: failed program was:" >&5
  3775. cat conftest.$ac_ext >&5
  3776. ac_cv_lib_bsd_gethostbyname=no
  3777. fi
  3778. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3779. LIBS=$ac_check_lib_save_LIBS
  3780. fi
  3781. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3782. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  3783. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  3784.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3785. fi
  3786.  
  3787.       fi
  3788.     fi
  3789.  
  3790.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3791.     # socket/setsockopt and other routines are undefined under SCO ODT
  3792.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  3793.     # on later versions), says Simon Leinen: it contains gethostby*
  3794.     # variants that don't use the nameserver (or something).  -lsocket
  3795.     # must be given before -lnsl if both are needed.  We assume that
  3796.     # if connect needs -lnsl, so does gethostbyname.
  3797.     echo "$as_me:$LINENO: checking for connect" >&5
  3798. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3799. if test "${ac_cv_func_connect+set}" = set; then
  3800.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. else
  3802.   cat >conftest.$ac_ext <<_ACEOF
  3803. #line $LINENO "configure"
  3804. #include "confdefs.h"
  3805. /* System header to define __stub macros and hopefully few prototypes,
  3806.     which can conflict with char connect (); below.  */
  3807. #include <assert.h>
  3808. /* Override any gcc2 internal prototype to avoid an error.  */
  3809. #ifdef __cplusplus
  3810. extern "C"
  3811. #endif
  3812. /* We use char because int might match the return type of a gcc2
  3813.    builtin and then its argument prototype would still apply.  */
  3814. char connect ();
  3815. char (*f) ();
  3816.  
  3817. #ifdef F77_DUMMY_MAIN
  3818. #  ifdef __cplusplus
  3819.      extern "C"
  3820. #  endif
  3821.    int F77_DUMMY_MAIN() { return 1; }
  3822. #endif
  3823. int
  3824. main ()
  3825. {
  3826. /* The GNU C library defines this for functions which it implements
  3827.     to always fail with ENOSYS.  Some functions are actually named
  3828.     something starting with __ and the normal name is an alias.  */
  3829. #if defined (__stub_connect) || defined (__stub___connect)
  3830. choke me
  3831. #else
  3832. f = connect;
  3833. #endif
  3834.  
  3835.   ;
  3836.   return 0;
  3837. }
  3838. _ACEOF
  3839. rm -f conftest.$ac_objext conftest$ac_exeext
  3840. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3841.   (eval $ac_link) 2>&5
  3842.   ac_status=$?
  3843.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3844.   (exit $ac_status); } &&
  3845.          { ac_try='test -s conftest$ac_exeext'
  3846.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3847.   (eval $ac_try) 2>&5
  3848.   ac_status=$?
  3849.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850.   (exit $ac_status); }; }; then
  3851.   ac_cv_func_connect=yes
  3852. else
  3853.   echo "$as_me: failed program was:" >&5
  3854. cat conftest.$ac_ext >&5
  3855. ac_cv_func_connect=no
  3856. fi
  3857. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3858. fi
  3859. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  3860. echo "${ECHO_T}$ac_cv_func_connect" >&6
  3861.  
  3862.     if test $ac_cv_func_connect = no; then
  3863.       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  3864. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3865. if test "${ac_cv_lib_socket_connect+set}" = set; then
  3866.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868.   ac_check_lib_save_LIBS=$LIBS
  3869. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3870. cat >conftest.$ac_ext <<_ACEOF
  3871. #line $LINENO "configure"
  3872. #include "confdefs.h"
  3873.  
  3874. /* Override any gcc2 internal prototype to avoid an error.  */
  3875. #ifdef __cplusplus
  3876. extern "C"
  3877. #endif
  3878. /* We use char because int might match the return type of a gcc2
  3879.    builtin and then its argument prototype would still apply.  */
  3880. char connect ();
  3881. #ifdef F77_DUMMY_MAIN
  3882. #  ifdef __cplusplus
  3883.      extern "C"
  3884. #  endif
  3885.    int F77_DUMMY_MAIN() { return 1; }
  3886. #endif
  3887. int
  3888. main ()
  3889. {
  3890. connect ();
  3891.   ;
  3892.   return 0;
  3893. }
  3894. _ACEOF
  3895. rm -f conftest.$ac_objext conftest$ac_exeext
  3896. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3897.   (eval $ac_link) 2>&5
  3898.   ac_status=$?
  3899.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3900.   (exit $ac_status); } &&
  3901.          { ac_try='test -s conftest$ac_exeext'
  3902.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3903.   (eval $ac_try) 2>&5
  3904.   ac_status=$?
  3905.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3906.   (exit $ac_status); }; }; then
  3907.   ac_cv_lib_socket_connect=yes
  3908. else
  3909.   echo "$as_me: failed program was:" >&5
  3910. cat conftest.$ac_ext >&5
  3911. ac_cv_lib_socket_connect=no
  3912. fi
  3913. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3914. LIBS=$ac_check_lib_save_LIBS
  3915. fi
  3916. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  3917. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3918. if test $ac_cv_lib_socket_connect = yes; then
  3919.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3920. fi
  3921.  
  3922.     fi
  3923.  
  3924.     # Guillermo Gomez says -lposix is necessary on A/UX.
  3925.     echo "$as_me:$LINENO: checking for remove" >&5
  3926. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  3927. if test "${ac_cv_func_remove+set}" = set; then
  3928.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930.   cat >conftest.$ac_ext <<_ACEOF
  3931. #line $LINENO "configure"
  3932. #include "confdefs.h"
  3933. /* System header to define __stub macros and hopefully few prototypes,
  3934.     which can conflict with char remove (); below.  */
  3935. #include <assert.h>
  3936. /* Override any gcc2 internal prototype to avoid an error.  */
  3937. #ifdef __cplusplus
  3938. extern "C"
  3939. #endif
  3940. /* We use char because int might match the return type of a gcc2
  3941.    builtin and then its argument prototype would still apply.  */
  3942. char remove ();
  3943. char (*f) ();
  3944.  
  3945. #ifdef F77_DUMMY_MAIN
  3946. #  ifdef __cplusplus
  3947.      extern "C"
  3948. #  endif
  3949.    int F77_DUMMY_MAIN() { return 1; }
  3950. #endif
  3951. int
  3952. main ()
  3953. {
  3954. /* The GNU C library defines this for functions which it implements
  3955.     to always fail with ENOSYS.  Some functions are actually named
  3956.     something starting with __ and the normal name is an alias.  */
  3957. #if defined (__stub_remove) || defined (__stub___remove)
  3958. choke me
  3959. #else
  3960. f = remove;
  3961. #endif
  3962.  
  3963.   ;
  3964.   return 0;
  3965. }
  3966. _ACEOF
  3967. rm -f conftest.$ac_objext conftest$ac_exeext
  3968. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3969.   (eval $ac_link) 2>&5
  3970.   ac_status=$?
  3971.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972.   (exit $ac_status); } &&
  3973.          { ac_try='test -s conftest$ac_exeext'
  3974.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975.   (eval $ac_try) 2>&5
  3976.   ac_status=$?
  3977.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978.   (exit $ac_status); }; }; then
  3979.   ac_cv_func_remove=yes
  3980. else
  3981.   echo "$as_me: failed program was:" >&5
  3982. cat conftest.$ac_ext >&5
  3983. ac_cv_func_remove=no
  3984. fi
  3985. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3986. fi
  3987. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  3988. echo "${ECHO_T}$ac_cv_func_remove" >&6
  3989.  
  3990.     if test $ac_cv_func_remove = no; then
  3991.       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  3992. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  3993. if test "${ac_cv_lib_posix_remove+set}" = set; then
  3994.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3995. else
  3996.   ac_check_lib_save_LIBS=$LIBS
  3997. LIBS="-lposix  $LIBS"
  3998. cat >conftest.$ac_ext <<_ACEOF
  3999. #line $LINENO "configure"
  4000. #include "confdefs.h"
  4001.  
  4002. /* Override any gcc2 internal prototype to avoid an error.  */
  4003. #ifdef __cplusplus
  4004. extern "C"
  4005. #endif
  4006. /* We use char because int might match the return type of a gcc2
  4007.    builtin and then its argument prototype would still apply.  */
  4008. char remove ();
  4009. #ifdef F77_DUMMY_MAIN
  4010. #  ifdef __cplusplus
  4011.      extern "C"
  4012. #  endif
  4013.    int F77_DUMMY_MAIN() { return 1; }
  4014. #endif
  4015. int
  4016. main ()
  4017. {
  4018. remove ();
  4019.   ;
  4020.   return 0;
  4021. }
  4022. _ACEOF
  4023. rm -f conftest.$ac_objext conftest$ac_exeext
  4024. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4025.   (eval $ac_link) 2>&5
  4026.   ac_status=$?
  4027.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028.   (exit $ac_status); } &&
  4029.          { ac_try='test -s conftest$ac_exeext'
  4030.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4031.   (eval $ac_try) 2>&5
  4032.   ac_status=$?
  4033.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4034.   (exit $ac_status); }; }; then
  4035.   ac_cv_lib_posix_remove=yes
  4036. else
  4037.   echo "$as_me: failed program was:" >&5
  4038. cat conftest.$ac_ext >&5
  4039. ac_cv_lib_posix_remove=no
  4040. fi
  4041. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4042. LIBS=$ac_check_lib_save_LIBS
  4043. fi
  4044. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  4045. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  4046. if test $ac_cv_lib_posix_remove = yes; then
  4047.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  4048. fi
  4049.  
  4050.     fi
  4051.  
  4052.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  4053.     echo "$as_me:$LINENO: checking for shmat" >&5
  4054. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  4055. if test "${ac_cv_func_shmat+set}" = set; then
  4056.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4057. else
  4058.   cat >conftest.$ac_ext <<_ACEOF
  4059. #line $LINENO "configure"
  4060. #include "confdefs.h"
  4061. /* System header to define __stub macros and hopefully few prototypes,
  4062.     which can conflict with char shmat (); below.  */
  4063. #include <assert.h>
  4064. /* Override any gcc2 internal prototype to avoid an error.  */
  4065. #ifdef __cplusplus
  4066. extern "C"
  4067. #endif
  4068. /* We use char because int might match the return type of a gcc2
  4069.    builtin and then its argument prototype would still apply.  */
  4070. char shmat ();
  4071. char (*f) ();
  4072.  
  4073. #ifdef F77_DUMMY_MAIN
  4074. #  ifdef __cplusplus
  4075.      extern "C"
  4076. #  endif
  4077.    int F77_DUMMY_MAIN() { return 1; }
  4078. #endif
  4079. int
  4080. main ()
  4081. {
  4082. /* The GNU C library defines this for functions which it implements
  4083.     to always fail with ENOSYS.  Some functions are actually named
  4084.     something starting with __ and the normal name is an alias.  */
  4085. #if defined (__stub_shmat) || defined (__stub___shmat)
  4086. choke me
  4087. #else
  4088. f = shmat;
  4089. #endif
  4090.  
  4091.   ;
  4092.   return 0;
  4093. }
  4094. _ACEOF
  4095. rm -f conftest.$ac_objext conftest$ac_exeext
  4096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4097.   (eval $ac_link) 2>&5
  4098.   ac_status=$?
  4099.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100.   (exit $ac_status); } &&
  4101.          { ac_try='test -s conftest$ac_exeext'
  4102.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4103.   (eval $ac_try) 2>&5
  4104.   ac_status=$?
  4105.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106.   (exit $ac_status); }; }; then
  4107.   ac_cv_func_shmat=yes
  4108. else
  4109.   echo "$as_me: failed program was:" >&5
  4110. cat conftest.$ac_ext >&5
  4111. ac_cv_func_shmat=no
  4112. fi
  4113. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4114. fi
  4115. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  4116. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  4117.  
  4118.     if test $ac_cv_func_shmat = no; then
  4119.       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  4120. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  4121. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  4122.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4123. else
  4124.   ac_check_lib_save_LIBS=$LIBS
  4125. LIBS="-lipc  $LIBS"
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. #line $LINENO "configure"
  4128. #include "confdefs.h"
  4129.  
  4130. /* Override any gcc2 internal prototype to avoid an error.  */
  4131. #ifdef __cplusplus
  4132. extern "C"
  4133. #endif
  4134. /* We use char because int might match the return type of a gcc2
  4135.    builtin and then its argument prototype would still apply.  */
  4136. char shmat ();
  4137. #ifdef F77_DUMMY_MAIN
  4138. #  ifdef __cplusplus
  4139.      extern "C"
  4140. #  endif
  4141.    int F77_DUMMY_MAIN() { return 1; }
  4142. #endif
  4143. int
  4144. main ()
  4145. {
  4146. shmat ();
  4147.   ;
  4148.   return 0;
  4149. }
  4150. _ACEOF
  4151. rm -f conftest.$ac_objext conftest$ac_exeext
  4152. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4153.   (eval $ac_link) 2>&5
  4154.   ac_status=$?
  4155.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156.   (exit $ac_status); } &&
  4157.          { ac_try='test -s conftest$ac_exeext'
  4158.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4159.   (eval $ac_try) 2>&5
  4160.   ac_status=$?
  4161.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4162.   (exit $ac_status); }; }; then
  4163.   ac_cv_lib_ipc_shmat=yes
  4164. else
  4165.   echo "$as_me: failed program was:" >&5
  4166. cat conftest.$ac_ext >&5
  4167. ac_cv_lib_ipc_shmat=no
  4168. fi
  4169. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4170. LIBS=$ac_check_lib_save_LIBS
  4171. fi
  4172. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  4173. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  4174. if test $ac_cv_lib_ipc_shmat = yes; then
  4175.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  4176. fi
  4177.  
  4178.     fi
  4179.   fi
  4180.  
  4181.   # Check for libraries that X11R6 Xt/Xaw programs need.
  4182.   ac_save_LDFLAGS=$LDFLAGS
  4183.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  4184.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4185.   # check for ICE first), but we must link in the order -lSM -lICE or
  4186.   # we get undefined symbols.  So assume we have SM if we have ICE.
  4187.   # These have to be linked with before -lX11, unlike the other
  4188.   # libraries we check for below, so use a different variable.
  4189.   # John Interrante, Karl Berry
  4190.   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  4191. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  4192. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  4193.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4194. else
  4195.   ac_check_lib_save_LIBS=$LIBS
  4196. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4197. cat >conftest.$ac_ext <<_ACEOF
  4198. #line $LINENO "configure"
  4199. #include "confdefs.h"
  4200.  
  4201. /* Override any gcc2 internal prototype to avoid an error.  */
  4202. #ifdef __cplusplus
  4203. extern "C"
  4204. #endif
  4205. /* We use char because int might match the return type of a gcc2
  4206.    builtin and then its argument prototype would still apply.  */
  4207. char IceConnectionNumber ();
  4208. #ifdef F77_DUMMY_MAIN
  4209. #  ifdef __cplusplus
  4210.      extern "C"
  4211. #  endif
  4212.    int F77_DUMMY_MAIN() { return 1; }
  4213. #endif
  4214. int
  4215. main ()
  4216. {
  4217. IceConnectionNumber ();
  4218.   ;
  4219.   return 0;
  4220. }
  4221. _ACEOF
  4222. rm -f conftest.$ac_objext conftest$ac_exeext
  4223. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4224.   (eval $ac_link) 2>&5
  4225.   ac_status=$?
  4226.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227.   (exit $ac_status); } &&
  4228.          { ac_try='test -s conftest$ac_exeext'
  4229.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4230.   (eval $ac_try) 2>&5
  4231.   ac_status=$?
  4232.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233.   (exit $ac_status); }; }; then
  4234.   ac_cv_lib_ICE_IceConnectionNumber=yes
  4235. else
  4236.   echo "$as_me: failed program was:" >&5
  4237. cat conftest.$ac_ext >&5
  4238. ac_cv_lib_ICE_IceConnectionNumber=no
  4239. fi
  4240. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4241. LIBS=$ac_check_lib_save_LIBS
  4242. fi
  4243. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  4244. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  4245. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  4246.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4247. fi
  4248.  
  4249.   LDFLAGS=$ac_save_LDFLAGS
  4250.  
  4251. fi
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258. ac_header_dirent=no
  4259. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4260.   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4261. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4262. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4263. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4264.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4265. else
  4266.   cat >conftest.$ac_ext <<_ACEOF
  4267. #line $LINENO "configure"
  4268. #include "confdefs.h"
  4269. #include <sys/types.h>
  4270. #include <$ac_hdr>
  4271.  
  4272. #ifdef F77_DUMMY_MAIN
  4273. #  ifdef __cplusplus
  4274.      extern "C"
  4275. #  endif
  4276.    int F77_DUMMY_MAIN() { return 1; }
  4277. #endif
  4278. int
  4279. main ()
  4280. {
  4281. if ((DIR *) 0)
  4282. return 0;
  4283.   ;
  4284.   return 0;
  4285. }
  4286. _ACEOF
  4287. rm -f conftest.$ac_objext
  4288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4289.   (eval $ac_compile) 2>&5
  4290.   ac_status=$?
  4291.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4292.   (exit $ac_status); } &&
  4293.          { ac_try='test -s conftest.$ac_objext'
  4294.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4295.   (eval $ac_try) 2>&5
  4296.   ac_status=$?
  4297.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4298.   (exit $ac_status); }; }; then
  4299.   eval "$as_ac_Header=yes"
  4300. else
  4301.   echo "$as_me: failed program was:" >&5
  4302. cat conftest.$ac_ext >&5
  4303. eval "$as_ac_Header=no"
  4304. fi
  4305. rm -f conftest.$ac_objext conftest.$ac_ext
  4306. fi
  4307. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4308. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4310.   cat >>confdefs.h <<_ACEOF
  4311. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4312. _ACEOF
  4313.  
  4314. ac_header_dirent=$ac_hdr; break
  4315. fi
  4316.  
  4317. done
  4318. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4319. if test $ac_header_dirent = dirent.h; then
  4320.   echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4321. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4322. if test "${ac_cv_search_opendir+set}" = set; then
  4323.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4324. else
  4325.   ac_func_search_save_LIBS=$LIBS
  4326. ac_cv_search_opendir=no
  4327. cat >conftest.$ac_ext <<_ACEOF
  4328. #line $LINENO "configure"
  4329. #include "confdefs.h"
  4330.  
  4331. /* Override any gcc2 internal prototype to avoid an error.  */
  4332. #ifdef __cplusplus
  4333. extern "C"
  4334. #endif
  4335. /* We use char because int might match the return type of a gcc2
  4336.    builtin and then its argument prototype would still apply.  */
  4337. char opendir ();
  4338. #ifdef F77_DUMMY_MAIN
  4339. #  ifdef __cplusplus
  4340.      extern "C"
  4341. #  endif
  4342.    int F77_DUMMY_MAIN() { return 1; }
  4343. #endif
  4344. int
  4345. main ()
  4346. {
  4347. opendir ();
  4348.   ;
  4349.   return 0;
  4350. }
  4351. _ACEOF
  4352. rm -f conftest.$ac_objext conftest$ac_exeext
  4353. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4354.   (eval $ac_link) 2>&5
  4355.   ac_status=$?
  4356.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357.   (exit $ac_status); } &&
  4358.          { ac_try='test -s conftest$ac_exeext'
  4359.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4360.   (eval $ac_try) 2>&5
  4361.   ac_status=$?
  4362.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4363.   (exit $ac_status); }; }; then
  4364.   ac_cv_search_opendir="none required"
  4365. else
  4366.   echo "$as_me: failed program was:" >&5
  4367. cat conftest.$ac_ext >&5
  4368. fi
  4369. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4370. if test "$ac_cv_search_opendir" = no; then
  4371.   for ac_lib in dir; do
  4372.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  4373.     cat >conftest.$ac_ext <<_ACEOF
  4374. #line $LINENO "configure"
  4375. #include "confdefs.h"
  4376.  
  4377. /* Override any gcc2 internal prototype to avoid an error.  */
  4378. #ifdef __cplusplus
  4379. extern "C"
  4380. #endif
  4381. /* We use char because int might match the return type of a gcc2
  4382.    builtin and then its argument prototype would still apply.  */
  4383. char opendir ();
  4384. #ifdef F77_DUMMY_MAIN
  4385. #  ifdef __cplusplus
  4386.      extern "C"
  4387. #  endif
  4388.    int F77_DUMMY_MAIN() { return 1; }
  4389. #endif
  4390. int
  4391. main ()
  4392. {
  4393. opendir ();
  4394.   ;
  4395.   return 0;
  4396. }
  4397. _ACEOF
  4398. rm -f conftest.$ac_objext conftest$ac_exeext
  4399. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4400.   (eval $ac_link) 2>&5
  4401.   ac_status=$?
  4402.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403.   (exit $ac_status); } &&
  4404.          { ac_try='test -s conftest$ac_exeext'
  4405.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4406.   (eval $ac_try) 2>&5
  4407.   ac_status=$?
  4408.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4409.   (exit $ac_status); }; }; then
  4410.   ac_cv_search_opendir="-l$ac_lib"
  4411. break
  4412. else
  4413.   echo "$as_me: failed program was:" >&5
  4414. cat conftest.$ac_ext >&5
  4415. fi
  4416. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4417.   done
  4418. fi
  4419. LIBS=$ac_func_search_save_LIBS
  4420. fi
  4421. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4422. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4423. if test "$ac_cv_search_opendir" != no; then
  4424.   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4425.  
  4426. fi
  4427.  
  4428. else
  4429.   echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4430. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4431. if test "${ac_cv_search_opendir+set}" = set; then
  4432.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4433. else
  4434.   ac_func_search_save_LIBS=$LIBS
  4435. ac_cv_search_opendir=no
  4436. cat >conftest.$ac_ext <<_ACEOF
  4437. #line $LINENO "configure"
  4438. #include "confdefs.h"
  4439.  
  4440. /* Override any gcc2 internal prototype to avoid an error.  */
  4441. #ifdef __cplusplus
  4442. extern "C"
  4443. #endif
  4444. /* We use char because int might match the return type of a gcc2
  4445.    builtin and then its argument prototype would still apply.  */
  4446. char opendir ();
  4447. #ifdef F77_DUMMY_MAIN
  4448. #  ifdef __cplusplus
  4449.      extern "C"
  4450. #  endif
  4451.    int F77_DUMMY_MAIN() { return 1; }
  4452. #endif
  4453. int
  4454. main ()
  4455. {
  4456. opendir ();
  4457.   ;
  4458.   return 0;
  4459. }
  4460. _ACEOF
  4461. rm -f conftest.$ac_objext conftest$ac_exeext
  4462. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4463.   (eval $ac_link) 2>&5
  4464.   ac_status=$?
  4465.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466.   (exit $ac_status); } &&
  4467.          { ac_try='test -s conftest$ac_exeext'
  4468.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4469.   (eval $ac_try) 2>&5
  4470.   ac_status=$?
  4471.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472.   (exit $ac_status); }; }; then
  4473.   ac_cv_search_opendir="none required"
  4474. else
  4475.   echo "$as_me: failed program was:" >&5
  4476. cat conftest.$ac_ext >&5
  4477. fi
  4478. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4479. if test "$ac_cv_search_opendir" = no; then
  4480.   for ac_lib in x; do
  4481.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  4482.     cat >conftest.$ac_ext <<_ACEOF
  4483. #line $LINENO "configure"
  4484. #include "confdefs.h"
  4485.  
  4486. /* Override any gcc2 internal prototype to avoid an error.  */
  4487. #ifdef __cplusplus
  4488. extern "C"
  4489. #endif
  4490. /* We use char because int might match the return type of a gcc2
  4491.    builtin and then its argument prototype would still apply.  */
  4492. char opendir ();
  4493. #ifdef F77_DUMMY_MAIN
  4494. #  ifdef __cplusplus
  4495.      extern "C"
  4496. #  endif
  4497.    int F77_DUMMY_MAIN() { return 1; }
  4498. #endif
  4499. int
  4500. main ()
  4501. {
  4502. opendir ();
  4503.   ;
  4504.   return 0;
  4505. }
  4506. _ACEOF
  4507. rm -f conftest.$ac_objext conftest$ac_exeext
  4508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4509.   (eval $ac_link) 2>&5
  4510.   ac_status=$?
  4511.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512.   (exit $ac_status); } &&
  4513.          { ac_try='test -s conftest$ac_exeext'
  4514.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4515.   (eval $ac_try) 2>&5
  4516.   ac_status=$?
  4517.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518.   (exit $ac_status); }; }; then
  4519.   ac_cv_search_opendir="-l$ac_lib"
  4520. break
  4521. else
  4522.   echo "$as_me: failed program was:" >&5
  4523. cat conftest.$ac_ext >&5
  4524. fi
  4525. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4526.   done
  4527. fi
  4528. LIBS=$ac_func_search_save_LIBS
  4529. fi
  4530. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4531. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4532. if test "$ac_cv_search_opendir" != no; then
  4533.   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4534.  
  4535. fi
  4536.  
  4537. fi
  4538.  
  4539.  
  4540. ac_ext=cc
  4541. ac_cpp='$CXXCPP $CPPFLAGS'
  4542. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4543. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4544. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4545.  
  4546.  
  4547.  
  4548. echo "$as_me:$LINENO: checking for gethostbyname" >&5
  4549. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  4550. if test "${ac_cv_func_gethostbyname+set}" = set; then
  4551.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4552. else
  4553.   cat >conftest.$ac_ext <<_ACEOF
  4554. #line $LINENO "configure"
  4555. #include "confdefs.h"
  4556. /* System header to define __stub macros and hopefully few prototypes,
  4557.     which can conflict with char gethostbyname (); below.  */
  4558. #include <assert.h>
  4559. /* Override any gcc2 internal prototype to avoid an error.  */
  4560. #ifdef __cplusplus
  4561. extern "C"
  4562. #endif
  4563. /* We use char because int might match the return type of a gcc2
  4564.    builtin and then its argument prototype would still apply.  */
  4565. char gethostbyname ();
  4566. char (*f) ();
  4567.  
  4568. #ifdef F77_DUMMY_MAIN
  4569. #  ifdef __cplusplus
  4570.      extern "C"
  4571. #  endif
  4572.    int F77_DUMMY_MAIN() { return 1; }
  4573. #endif
  4574. int
  4575. main ()
  4576. {
  4577. /* The GNU C library defines this for functions which it implements
  4578.     to always fail with ENOSYS.  Some functions are actually named
  4579.     something starting with __ and the normal name is an alias.  */
  4580. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  4581. choke me
  4582. #else
  4583. f = gethostbyname;
  4584. #endif
  4585.  
  4586.   ;
  4587.   return 0;
  4588. }
  4589. _ACEOF
  4590. rm -f conftest.$ac_objext conftest$ac_exeext
  4591. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4592.   (eval $ac_link) 2>&5
  4593.   ac_status=$?
  4594.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595.   (exit $ac_status); } &&
  4596.          { ac_try='test -s conftest$ac_exeext'
  4597.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4598.   (eval $ac_try) 2>&5
  4599.   ac_status=$?
  4600.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4601.   (exit $ac_status); }; }; then
  4602.   ac_cv_func_gethostbyname=yes
  4603. else
  4604.   echo "$as_me: failed program was:" >&5
  4605. cat conftest.$ac_ext >&5
  4606. ac_cv_func_gethostbyname=no
  4607. fi
  4608. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4609. fi
  4610. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  4611. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  4612.  
  4613. if test $ac_cv_func_gethostbyname = no; then
  4614.   echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  4615. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  4616. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  4617.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4618. else
  4619.   ac_check_lib_save_LIBS=$LIBS
  4620. LIBS="-lbsd  $LIBS"
  4621. cat >conftest.$ac_ext <<_ACEOF
  4622. #line $LINENO "configure"
  4623. #include "confdefs.h"
  4624.  
  4625. /* Override any gcc2 internal prototype to avoid an error.  */
  4626. #ifdef __cplusplus
  4627. extern "C"
  4628. #endif
  4629. /* We use char because int might match the return type of a gcc2
  4630.    builtin and then its argument prototype would still apply.  */
  4631. char gethostbyname ();
  4632. #ifdef F77_DUMMY_MAIN
  4633. #  ifdef __cplusplus
  4634.      extern "C"
  4635. #  endif
  4636.    int F77_DUMMY_MAIN() { return 1; }
  4637. #endif
  4638. int
  4639. main ()
  4640. {
  4641. gethostbyname ();
  4642.   ;
  4643.   return 0;
  4644. }
  4645. _ACEOF
  4646. rm -f conftest.$ac_objext conftest$ac_exeext
  4647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4648.   (eval $ac_link) 2>&5
  4649.   ac_status=$?
  4650.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651.   (exit $ac_status); } &&
  4652.          { ac_try='test -s conftest$ac_exeext'
  4653.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4654.   (eval $ac_try) 2>&5
  4655.   ac_status=$?
  4656.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657.   (exit $ac_status); }; }; then
  4658.   ac_cv_lib_bsd_gethostbyname=yes
  4659. else
  4660.   echo "$as_me: failed program was:" >&5
  4661. cat conftest.$ac_ext >&5
  4662. ac_cv_lib_bsd_gethostbyname=no
  4663. fi
  4664. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4665. LIBS=$ac_check_lib_save_LIBS
  4666. fi
  4667. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  4668. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  4669. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  4670.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  4671. fi
  4672.  
  4673. fi
  4674.  
  4675. echo "$as_me:$LINENO: checking select() and fd_set in sys/select.h and sys/bsdtypes.h" >&5
  4676. echo $ECHO_N "checking select() and fd_set in sys/select.h and sys/bsdtypes.h... $ECHO_C" >&6
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. #line $LINENO "configure"
  4679. #include "confdefs.h"
  4680. #include <stdlib.h>
  4681. #include <stddef.h>
  4682. #include <unistd.h>
  4683. #include <sys/types.h>
  4684. #ifdef F77_DUMMY_MAIN
  4685. #  ifdef __cplusplus
  4686.      extern "C"
  4687. #  endif
  4688.    int F77_DUMMY_MAIN() { return 1; }
  4689. #endif
  4690. int
  4691. main ()
  4692. {
  4693. fd_set fds;
  4694. select(0, NULL, NULL, NULL, NULL);
  4695.   ;
  4696.   return 0;
  4697. }
  4698. _ACEOF
  4699. rm -f conftest.$ac_objext
  4700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4701.   (eval $ac_compile) 2>&5
  4702.   ac_status=$?
  4703.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704.   (exit $ac_status); } &&
  4705.          { ac_try='test -s conftest.$ac_objext'
  4706.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4707.   (eval $ac_try) 2>&5
  4708.   ac_status=$?
  4709.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4710.   (exit $ac_status); }; }; then
  4711.   xpdf_ok=yes
  4712. else
  4713.   echo "$as_me: failed program was:" >&5
  4714. cat conftest.$ac_ext >&5
  4715. xpdf_ok=no
  4716. fi
  4717. rm -f conftest.$ac_objext conftest.$ac_ext
  4718. if test $xpdf_ok = yes; then
  4719.   echo "$as_me:$LINENO: result: not needed" >&5
  4720. echo "${ECHO_T}not needed" >&6
  4721. else
  4722.   cat >conftest.$ac_ext <<_ACEOF
  4723. #line $LINENO "configure"
  4724. #include "confdefs.h"
  4725. #include <stdlib.h>
  4726. #include <stddef.h>
  4727. #include <unistd.h>
  4728. #include <sys/types.h>
  4729. #include <sys/select.h>
  4730. #ifdef F77_DUMMY_MAIN
  4731. #  ifdef __cplusplus
  4732.      extern "C"
  4733. #  endif
  4734.    int F77_DUMMY_MAIN() { return 1; }
  4735. #endif
  4736. int
  4737. main ()
  4738. {
  4739. fd_set fds;
  4740. select(0, NULL, NULL, NULL, NULL);
  4741.   ;
  4742.   return 0;
  4743. }
  4744. _ACEOF
  4745. rm -f conftest.$ac_objext
  4746. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4747.   (eval $ac_compile) 2>&5
  4748.   ac_status=$?
  4749.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750.   (exit $ac_status); } &&
  4751.          { ac_try='test -s conftest.$ac_objext'
  4752.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4753.   (eval $ac_try) 2>&5
  4754.   ac_status=$?
  4755.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756.   (exit $ac_status); }; }; then
  4757.   xpdf_ok=yes
  4758. else
  4759.   echo "$as_me: failed program was:" >&5
  4760. cat conftest.$ac_ext >&5
  4761. xpdf_ok=no
  4762. fi
  4763. rm -f conftest.$ac_objext conftest.$ac_ext
  4764.   if test $xpdf_ok = yes; then
  4765.     cat >>confdefs.h <<\_ACEOF
  4766. #define HAVE_SYS_SELECT_H 1
  4767. _ACEOF
  4768.  
  4769.     echo "$as_me:$LINENO: result: need sys/select.h" >&5
  4770. echo "${ECHO_T}need sys/select.h" >&6
  4771.   else
  4772.     cat >conftest.$ac_ext <<_ACEOF
  4773. #line $LINENO "configure"
  4774. #include "confdefs.h"
  4775. #include <stdlib.h>
  4776. #include <stddef.h>
  4777. #include <unistd.h>
  4778. #include <sys/types.h>
  4779. #include <sys/bsdtypes.h>
  4780. #ifdef F77_DUMMY_MAIN
  4781. #  ifdef __cplusplus
  4782.      extern "C"
  4783. #  endif
  4784.    int F77_DUMMY_MAIN() { return 1; }
  4785. #endif
  4786. int
  4787. main ()
  4788. {
  4789. fd_set fds;
  4790. select(0, NULL, NULL, NULL, NULL);
  4791.   ;
  4792.   return 0;
  4793. }
  4794. _ACEOF
  4795. rm -f conftest.$ac_objext
  4796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4797.   (eval $ac_compile) 2>&5
  4798.   ac_status=$?
  4799.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4800.   (exit $ac_status); } &&
  4801.          { ac_try='test -s conftest.$ac_objext'
  4802.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4803.   (eval $ac_try) 2>&5
  4804.   ac_status=$?
  4805.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806.   (exit $ac_status); }; }; then
  4807.   xpdf_ok=yes
  4808. else
  4809.   echo "$as_me: failed program was:" >&5
  4810. cat conftest.$ac_ext >&5
  4811. xpdf_ok=no
  4812. fi
  4813. rm -f conftest.$ac_objext conftest.$ac_ext
  4814.     if test $xpdf_ok = yes; then
  4815.       cat >>confdefs.h <<\_ACEOF
  4816. #define HAVE_SYS_BSDTYPES_H 1
  4817. _ACEOF
  4818.  
  4819.       echo "$as_me:$LINENO: result: need sys/bsdtypes.h" >&5
  4820. echo "${ECHO_T}need sys/bsdtypes.h" >&6
  4821.     else
  4822.       echo "$as_me:$LINENO: result: problem" >&5
  4823. echo "${ECHO_T}problem" >&6
  4824.     fi
  4825.   fi
  4826. fi
  4827.  
  4828. echo "$as_me:$LINENO: checking FD_ZERO and strings.h or bstring.h" >&5
  4829. echo $ECHO_N "checking FD_ZERO and strings.h or bstring.h... $ECHO_C" >&6
  4830. cat >conftest.$ac_ext <<_ACEOF
  4831. #line $LINENO "configure"
  4832. #include "confdefs.h"
  4833. #include <stdlib.h>
  4834. #include <sys/types.h>
  4835. #ifdef HAVE_SYS_SELECT_H
  4836. #include <sys/select.h>
  4837. #endif
  4838. #ifdef F77_DUMMY_MAIN
  4839. #  ifdef __cplusplus
  4840.      extern "C"
  4841. #  endif
  4842.    int F77_DUMMY_MAIN() { return 1; }
  4843. #endif
  4844. int
  4845. main ()
  4846. {
  4847. fd_set fds; FD_ZERO(&fds);
  4848.   ;
  4849.   return 0;
  4850. }
  4851. _ACEOF
  4852. rm -f conftest.$ac_objext
  4853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4854.   (eval $ac_compile) 2>&5
  4855.   ac_status=$?
  4856.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4857.   (exit $ac_status); } &&
  4858.          { ac_try='test -s conftest.$ac_objext'
  4859.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4860.   (eval $ac_try) 2>&5
  4861.   ac_status=$?
  4862.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4863.   (exit $ac_status); }; }; then
  4864.   xpdf_ok=yes
  4865. else
  4866.   echo "$as_me: failed program was:" >&5
  4867. cat conftest.$ac_ext >&5
  4868. xpdf_ok=no
  4869. fi
  4870. rm -f conftest.$ac_objext conftest.$ac_ext
  4871. if test $xpdf_ok = yes; then
  4872.   echo "$as_me:$LINENO: result: not needed" >&5
  4873. echo "${ECHO_T}not needed" >&6
  4874. else
  4875.   cat >conftest.$ac_ext <<_ACEOF
  4876. #line $LINENO "configure"
  4877. #include "confdefs.h"
  4878. #include <stdlib.h>
  4879. #include <sys/types.h>
  4880. #include <strings.h>
  4881. #ifdef HAVE_SYS_SELECT_H
  4882. #include <sys/select.h>
  4883. #endif
  4884. #ifdef F77_DUMMY_MAIN
  4885. #  ifdef __cplusplus
  4886.      extern "C"
  4887. #  endif
  4888.    int F77_DUMMY_MAIN() { return 1; }
  4889. #endif
  4890. int
  4891. main ()
  4892. {
  4893. fd_set fds; FD_ZERO(&fds);
  4894.   ;
  4895.   return 0;
  4896. }
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext
  4899. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4900.   (eval $ac_compile) 2>&5
  4901.   ac_status=$?
  4902.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4903.   (exit $ac_status); } &&
  4904.          { ac_try='test -s conftest.$ac_objext'
  4905.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4906.   (eval $ac_try) 2>&5
  4907.   ac_status=$?
  4908.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909.   (exit $ac_status); }; }; then
  4910.   xpdf_ok=yes
  4911. else
  4912.   echo "$as_me: failed program was:" >&5
  4913. cat conftest.$ac_ext >&5
  4914. xpdf_ok=no
  4915. fi
  4916. rm -f conftest.$ac_objext conftest.$ac_ext
  4917.   if test $xpdf_ok = yes; then
  4918.     cat >>confdefs.h <<\_ACEOF
  4919. #define HAVE_STRINGS_H 1
  4920. _ACEOF
  4921.  
  4922.     echo "$as_me:$LINENO: result: need strings.h" >&5
  4923. echo "${ECHO_T}need strings.h" >&6
  4924.   else
  4925.     cat >conftest.$ac_ext <<_ACEOF
  4926. #line $LINENO "configure"
  4927. #include "confdefs.h"
  4928. #include <stdlib.h>
  4929. #include <sys/types.h>
  4930. #include <bstring.h>
  4931. #ifdef HAVE_SYS_SELECT_H
  4932. #include <sys/select.h>
  4933. #endif
  4934. #ifdef F77_DUMMY_MAIN
  4935. #  ifdef __cplusplus
  4936.      extern "C"
  4937. #  endif
  4938.    int F77_DUMMY_MAIN() { return 1; }
  4939. #endif
  4940. int
  4941. main ()
  4942. {
  4943. fd_set fds; FD_ZERO(&fds);
  4944.   ;
  4945.   return 0;
  4946. }
  4947. _ACEOF
  4948. rm -f conftest.$ac_objext
  4949. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4950.   (eval $ac_compile) 2>&5
  4951.   ac_status=$?
  4952.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4953.   (exit $ac_status); } &&
  4954.          { ac_try='test -s conftest.$ac_objext'
  4955.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4956.   (eval $ac_try) 2>&5
  4957.   ac_status=$?
  4958.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4959.   (exit $ac_status); }; }; then
  4960.   xpdf_ok=yes
  4961. else
  4962.   echo "$as_me: failed program was:" >&5
  4963. cat conftest.$ac_ext >&5
  4964. xpdf_ok=no
  4965. fi
  4966. rm -f conftest.$ac_objext conftest.$ac_ext
  4967.     if test $xpdf_ok = yes; then
  4968.       cat >>confdefs.h <<\_ACEOF
  4969. #define HAVE_BSTRING_H 1
  4970. _ACEOF
  4971.  
  4972.       echo "$as_me:$LINENO: result: need bstring.h" >&5
  4973. echo "${ECHO_T}need bstring.h" >&6
  4974.     else
  4975.       echo "$as_me:$LINENO: result: problem" >&5
  4976. echo "${ECHO_T}problem" >&6
  4977.     fi
  4978.   fi
  4979. fi
  4980.  
  4981.  
  4982. for ac_func in rewinddir
  4983. do
  4984. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4985. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4986. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4987. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4988.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4989. else
  4990.   cat >conftest.$ac_ext <<_ACEOF
  4991. #line $LINENO "configure"
  4992. #include "confdefs.h"
  4993. /* System header to define __stub macros and hopefully few prototypes,
  4994.     which can conflict with char $ac_func (); below.  */
  4995. #include <assert.h>
  4996. /* Override any gcc2 internal prototype to avoid an error.  */
  4997. #ifdef __cplusplus
  4998. extern "C"
  4999. #endif
  5000. /* We use char because int might match the return type of a gcc2
  5001.    builtin and then its argument prototype would still apply.  */
  5002. char $ac_func ();
  5003. char (*f) ();
  5004.  
  5005. #ifdef F77_DUMMY_MAIN
  5006. #  ifdef __cplusplus
  5007.      extern "C"
  5008. #  endif
  5009.    int F77_DUMMY_MAIN() { return 1; }
  5010. #endif
  5011. int
  5012. main ()
  5013. {
  5014. /* The GNU C library defines this for functions which it implements
  5015.     to always fail with ENOSYS.  Some functions are actually named
  5016.     something starting with __ and the normal name is an alias.  */
  5017. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5018. choke me
  5019. #else
  5020. f = $ac_func;
  5021. #endif
  5022.  
  5023.   ;
  5024.   return 0;
  5025. }
  5026. _ACEOF
  5027. rm -f conftest.$ac_objext conftest$ac_exeext
  5028. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5029.   (eval $ac_link) 2>&5
  5030.   ac_status=$?
  5031.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5032.   (exit $ac_status); } &&
  5033.          { ac_try='test -s conftest$ac_exeext'
  5034.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5035.   (eval $ac_try) 2>&5
  5036.   ac_status=$?
  5037.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5038.   (exit $ac_status); }; }; then
  5039.   eval "$as_ac_var=yes"
  5040. else
  5041.   echo "$as_me: failed program was:" >&5
  5042. cat conftest.$ac_ext >&5
  5043. eval "$as_ac_var=no"
  5044. fi
  5045. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5046. fi
  5047. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5048. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5049. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5050.   cat >>confdefs.h <<_ACEOF
  5051. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5052. _ACEOF
  5053.  
  5054. fi
  5055. done
  5056.  
  5057. if test $ac_cv_func_rewinddir = no; then
  5058.  
  5059. echo "$as_me:$LINENO: checking for rewinddir in -lcposix" >&5
  5060. echo $ECHO_N "checking for rewinddir in -lcposix... $ECHO_C" >&6
  5061. if test "${ac_cv_lib_cposix_rewinddir+set}" = set; then
  5062.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5063. else
  5064.   ac_check_lib_save_LIBS=$LIBS
  5065. LIBS="-lcposix  $LIBS"
  5066. cat >conftest.$ac_ext <<_ACEOF
  5067. #line $LINENO "configure"
  5068. #include "confdefs.h"
  5069.  
  5070. /* Override any gcc2 internal prototype to avoid an error.  */
  5071. #ifdef __cplusplus
  5072. extern "C"
  5073. #endif
  5074. /* We use char because int might match the return type of a gcc2
  5075.    builtin and then its argument prototype would still apply.  */
  5076. char rewinddir ();
  5077. #ifdef F77_DUMMY_MAIN
  5078. #  ifdef __cplusplus
  5079.      extern "C"
  5080. #  endif
  5081.    int F77_DUMMY_MAIN() { return 1; }
  5082. #endif
  5083. int
  5084. main ()
  5085. {
  5086. rewinddir ();
  5087.   ;
  5088.   return 0;
  5089. }
  5090. _ACEOF
  5091. rm -f conftest.$ac_objext conftest$ac_exeext
  5092. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5093.   (eval $ac_link) 2>&5
  5094.   ac_status=$?
  5095.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096.   (exit $ac_status); } &&
  5097.          { ac_try='test -s conftest$ac_exeext'
  5098.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5099.   (eval $ac_try) 2>&5
  5100.   ac_status=$?
  5101.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5102.   (exit $ac_status); }; }; then
  5103.   ac_cv_lib_cposix_rewinddir=yes
  5104. else
  5105.   echo "$as_me: failed program was:" >&5
  5106. cat conftest.$ac_ext >&5
  5107. ac_cv_lib_cposix_rewinddir=no
  5108. fi
  5109. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5110. LIBS=$ac_check_lib_save_LIBS
  5111. fi
  5112. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_rewinddir" >&5
  5113. echo "${ECHO_T}$ac_cv_lib_cposix_rewinddir" >&6
  5114. if test $ac_cv_lib_cposix_rewinddir = yes; then
  5115.   cat >>confdefs.h <<_ACEOF
  5116. #define HAVE_LIBCPOSIX 1
  5117. _ACEOF
  5118.  
  5119.   LIBS="-lcposix $LIBS"
  5120.  
  5121. fi
  5122.  
  5123. fi
  5124.  
  5125.  
  5126. for ac_func in popen
  5127. do
  5128. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5129. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5130. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5131. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5132.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134.   cat >conftest.$ac_ext <<_ACEOF
  5135. #line $LINENO "configure"
  5136. #include "confdefs.h"
  5137. /* System header to define __stub macros and hopefully few prototypes,
  5138.     which can conflict with char $ac_func (); below.  */
  5139. #include <assert.h>
  5140. /* Override any gcc2 internal prototype to avoid an error.  */
  5141. #ifdef __cplusplus
  5142. extern "C"
  5143. #endif
  5144. /* We use char because int might match the return type of a gcc2
  5145.    builtin and then its argument prototype would still apply.  */
  5146. char $ac_func ();
  5147. char (*f) ();
  5148.  
  5149. #ifdef F77_DUMMY_MAIN
  5150. #  ifdef __cplusplus
  5151.      extern "C"
  5152. #  endif
  5153.    int F77_DUMMY_MAIN() { return 1; }
  5154. #endif
  5155. int
  5156. main ()
  5157. {
  5158. /* The GNU C library defines this for functions which it implements
  5159.     to always fail with ENOSYS.  Some functions are actually named
  5160.     something starting with __ and the normal name is an alias.  */
  5161. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5162. choke me
  5163. #else
  5164. f = $ac_func;
  5165. #endif
  5166.  
  5167.   ;
  5168.   return 0;
  5169. }
  5170. _ACEOF
  5171. rm -f conftest.$ac_objext conftest$ac_exeext
  5172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5173.   (eval $ac_link) 2>&5
  5174.   ac_status=$?
  5175.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176.   (exit $ac_status); } &&
  5177.          { ac_try='test -s conftest$ac_exeext'
  5178.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5179.   (eval $ac_try) 2>&5
  5180.   ac_status=$?
  5181.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182.   (exit $ac_status); }; }; then
  5183.   eval "$as_ac_var=yes"
  5184. else
  5185.   echo "$as_me: failed program was:" >&5
  5186. cat conftest.$ac_ext >&5
  5187. eval "$as_ac_var=no"
  5188. fi
  5189. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5190. fi
  5191. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5192. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5193. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5194.   cat >>confdefs.h <<_ACEOF
  5195. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5196. _ACEOF
  5197.  
  5198. fi
  5199. done
  5200.  
  5201. echo "$as_me:$LINENO: checking for mkstemp" >&5
  5202. echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
  5203. if test "${xpdf_cv_func_mkstemp+set}" = set; then
  5204.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5205. else
  5206.   cat >conftest.$ac_ext <<_ACEOF
  5207. #line $LINENO "configure"
  5208. #include "confdefs.h"
  5209. #include <stdlib.h>
  5210. #include <unistd.h>
  5211. #ifdef F77_DUMMY_MAIN
  5212. #  ifdef __cplusplus
  5213.      extern "C"
  5214. #  endif
  5215.    int F77_DUMMY_MAIN() { return 1; }
  5216. #endif
  5217. int
  5218. main ()
  5219. {
  5220. mkstemp("foo");
  5221.   ;
  5222.   return 0;
  5223. }
  5224. _ACEOF
  5225. rm -f conftest.$ac_objext conftest$ac_exeext
  5226. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5227.   (eval $ac_link) 2>&5
  5228.   ac_status=$?
  5229.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230.   (exit $ac_status); } &&
  5231.          { ac_try='test -s conftest$ac_exeext'
  5232.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5233.   (eval $ac_try) 2>&5
  5234.   ac_status=$?
  5235.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236.   (exit $ac_status); }; }; then
  5237.   xpdf_cv_func_mkstemp=yes
  5238. else
  5239.   echo "$as_me: failed program was:" >&5
  5240. cat conftest.$ac_ext >&5
  5241. xpdf_cv_func_mkstemp=no
  5242. fi
  5243. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5244. fi
  5245. echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemp" >&5
  5246. echo "${ECHO_T}$xpdf_cv_func_mkstemp" >&6
  5247. if test "$xpdf_cv_func_mkstemp" = yes; then
  5248.   cat >>confdefs.h <<\_ACEOF
  5249. #define HAVE_MKSTEMP 1
  5250. _ACEOF
  5251.  
  5252. fi
  5253. echo "$as_me:$LINENO: checking for mkstemps" >&5
  5254. echo $ECHO_N "checking for mkstemps... $ECHO_C" >&6
  5255. if test "${xpdf_cv_func_mkstemps+set}" = set; then
  5256.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5257. else
  5258.   cat >conftest.$ac_ext <<_ACEOF
  5259. #line $LINENO "configure"
  5260. #include "confdefs.h"
  5261. #include <stdlib.h>
  5262. #include <unistd.h>
  5263. #ifdef F77_DUMMY_MAIN
  5264. #  ifdef __cplusplus
  5265.      extern "C"
  5266. #  endif
  5267.    int F77_DUMMY_MAIN() { return 1; }
  5268. #endif
  5269. int
  5270. main ()
  5271. {
  5272. mkstemps("foo", 0);
  5273.   ;
  5274.   return 0;
  5275. }
  5276. _ACEOF
  5277. rm -f conftest.$ac_objext conftest$ac_exeext
  5278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5279.   (eval $ac_link) 2>&5
  5280.   ac_status=$?
  5281.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5282.   (exit $ac_status); } &&
  5283.          { ac_try='test -s conftest$ac_exeext'
  5284.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5285.   (eval $ac_try) 2>&5
  5286.   ac_status=$?
  5287.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288.   (exit $ac_status); }; }; then
  5289.   xpdf_cv_func_mkstemps=yes
  5290. else
  5291.   echo "$as_me: failed program was:" >&5
  5292. cat conftest.$ac_ext >&5
  5293. xpdf_cv_func_mkstemps=no
  5294. fi
  5295. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5296. fi
  5297. echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemps" >&5
  5298. echo "${ECHO_T}$xpdf_cv_func_mkstemps" >&6
  5299. if test "$xpdf_cv_func_mkstemps" = yes; then
  5300.   cat >>confdefs.h <<\_ACEOF
  5301. #define HAVE_MKSTEMPS 1
  5302. _ACEOF
  5303.  
  5304. fi
  5305.  
  5306. echo "$as_me:$LINENO: checking whether select takes fd_set arguments" >&5
  5307. echo $ECHO_N "checking whether select takes fd_set arguments... $ECHO_C" >&6
  5308. if test "${xpdf_cv_func_select_arg+set}" = set; then
  5309.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5310. else
  5311.   cat >conftest.$ac_ext <<_ACEOF
  5312. #line $LINENO "configure"
  5313. #include "confdefs.h"
  5314. #include <sys/types.h>
  5315. #include <sys/time.h>
  5316. #include <unistd.h>
  5317. #ifdef HAVE_SYS_SELECT_H
  5318. #include <sys/select.h>
  5319. #endif
  5320. #ifdef F77_DUMMY_MAIN
  5321. #  ifdef __cplusplus
  5322.      extern "C"
  5323. #  endif
  5324.    int F77_DUMMY_MAIN() { return 1; }
  5325. #endif
  5326. int
  5327. main ()
  5328. {
  5329. fd_set fds;
  5330. select(1, &fds, &fds, &fds, 0);
  5331.   ;
  5332.   return 0;
  5333. }
  5334. _ACEOF
  5335. rm -f conftest.$ac_objext
  5336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5337.   (eval $ac_compile) 2>&5
  5338.   ac_status=$?
  5339.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5340.   (exit $ac_status); } &&
  5341.          { ac_try='test -s conftest.$ac_objext'
  5342.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5343.   (eval $ac_try) 2>&5
  5344.   ac_status=$?
  5345.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346.   (exit $ac_status); }; }; then
  5347.   xpdf_cv_func_select_arg=yes
  5348. else
  5349.   echo "$as_me: failed program was:" >&5
  5350. cat conftest.$ac_ext >&5
  5351. xpdf_cv_func_select_arg=no
  5352. fi
  5353. rm -f conftest.$ac_objext conftest.$ac_ext
  5354. fi
  5355. echo "$as_me:$LINENO: result: $xpdf_cv_func_select_arg" >&5
  5356. echo "${ECHO_T}$xpdf_cv_func_select_arg" >&6
  5357. if test "$xpdf_cv_func_select_arg" != yes; then
  5358.   cat >>confdefs.h <<\_ACEOF
  5359. #define SELECT_TAKES_INT 1
  5360. _ACEOF
  5361.  
  5362. fi
  5363.  
  5364. ac_ext=c
  5365. ac_cpp='$CPP $CPPFLAGS'
  5366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5369.  
  5370.  
  5371. # Check whether --enable-largefile or --disable-largefile was given.
  5372. if test "${enable_largefile+set}" = set; then
  5373.   enableval="$enable_largefile"
  5374.  
  5375. fi;
  5376. if test "$enable_largefile" != no; then
  5377.  
  5378.   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  5379. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  5380. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  5381.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5382. else
  5383.   ac_cv_sys_largefile_CC=no
  5384.      if test "$GCC" != yes; then
  5385.        ac_save_CC=$CC
  5386.        while :; do
  5387.           # IRIX 6.2 and later do not support large files by default,
  5388.           # so use the C compiler's -n32 option if that helps.
  5389.          cat >conftest.$ac_ext <<_ACEOF
  5390. #line $LINENO "configure"
  5391. #include "confdefs.h"
  5392. #include <sys/types.h>
  5393.  /* Check that off_t can represent 2**63 - 1 correctly.
  5394.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5395.     since some C++ compilers masquerading as C compilers
  5396.     incorrectly reject 9223372036854775807.  */
  5397. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5398.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5399.                && LARGE_OFF_T % 2147483647 == 1)
  5400.               ? 1 : -1];
  5401. #ifdef F77_DUMMY_MAIN
  5402. #  ifdef __cplusplus
  5403.      extern "C"
  5404. #  endif
  5405.    int F77_DUMMY_MAIN() { return 1; }
  5406. #endif
  5407. int
  5408. main ()
  5409. {
  5410.  
  5411.   ;
  5412.   return 0;
  5413. }
  5414. _ACEOF
  5415.           rm -f conftest.$ac_objext
  5416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5417.   (eval $ac_compile) 2>&5
  5418.   ac_status=$?
  5419.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5420.   (exit $ac_status); } &&
  5421.          { ac_try='test -s conftest.$ac_objext'
  5422.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5423.   (eval $ac_try) 2>&5
  5424.   ac_status=$?
  5425.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5426.   (exit $ac_status); }; }; then
  5427.   break
  5428. else
  5429.   echo "$as_me: failed program was:" >&5
  5430. cat conftest.$ac_ext >&5
  5431. fi
  5432. rm -f conftest.$ac_objext
  5433.           CC="$CC -n32"
  5434.           rm -f conftest.$ac_objext
  5435. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5436.   (eval $ac_compile) 2>&5
  5437.   ac_status=$?
  5438.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5439.   (exit $ac_status); } &&
  5440.          { ac_try='test -s conftest.$ac_objext'
  5441.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5442.   (eval $ac_try) 2>&5
  5443.   ac_status=$?
  5444.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5445.   (exit $ac_status); }; }; then
  5446.   ac_cv_sys_largefile_CC=' -n32'; break
  5447. else
  5448.   echo "$as_me: failed program was:" >&5
  5449. cat conftest.$ac_ext >&5
  5450. fi
  5451. rm -f conftest.$ac_objext
  5452.          break
  5453.        done
  5454.        CC=$ac_save_CC
  5455.        rm -f conftest.$ac_ext
  5456.     fi
  5457. fi
  5458. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  5459. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  5460.   if test "$ac_cv_sys_largefile_CC" != no; then
  5461.     CC=$CC$ac_cv_sys_largefile_CC
  5462.   fi
  5463.  
  5464.   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5465. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  5466. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  5467.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5468. else
  5469.   while :; do
  5470.   ac_cv_sys_file_offset_bits=no
  5471.   cat >conftest.$ac_ext <<_ACEOF
  5472. #line $LINENO "configure"
  5473. #include "confdefs.h"
  5474. #include <sys/types.h>
  5475.  /* Check that off_t can represent 2**63 - 1 correctly.
  5476.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5477.     since some C++ compilers masquerading as C compilers
  5478.     incorrectly reject 9223372036854775807.  */
  5479. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5480.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5481.                && LARGE_OFF_T % 2147483647 == 1)
  5482.               ? 1 : -1];
  5483. #ifdef F77_DUMMY_MAIN
  5484. #  ifdef __cplusplus
  5485.      extern "C"
  5486. #  endif
  5487.    int F77_DUMMY_MAIN() { return 1; }
  5488. #endif
  5489. int
  5490. main ()
  5491. {
  5492.  
  5493.   ;
  5494.   return 0;
  5495. }
  5496. _ACEOF
  5497. rm -f conftest.$ac_objext
  5498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5499.   (eval $ac_compile) 2>&5
  5500.   ac_status=$?
  5501.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5502.   (exit $ac_status); } &&
  5503.          { ac_try='test -s conftest.$ac_objext'
  5504.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5505.   (eval $ac_try) 2>&5
  5506.   ac_status=$?
  5507.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5508.   (exit $ac_status); }; }; then
  5509.   break
  5510. else
  5511.   echo "$as_me: failed program was:" >&5
  5512. cat conftest.$ac_ext >&5
  5513. fi
  5514. rm -f conftest.$ac_objext conftest.$ac_ext
  5515.   cat >conftest.$ac_ext <<_ACEOF
  5516. #line $LINENO "configure"
  5517. #include "confdefs.h"
  5518. #define _FILE_OFFSET_BITS 64
  5519. #include <sys/types.h>
  5520.  /* Check that off_t can represent 2**63 - 1 correctly.
  5521.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5522.     since some C++ compilers masquerading as C compilers
  5523.     incorrectly reject 9223372036854775807.  */
  5524. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5525.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5526.                && LARGE_OFF_T % 2147483647 == 1)
  5527.               ? 1 : -1];
  5528. #ifdef F77_DUMMY_MAIN
  5529. #  ifdef __cplusplus
  5530.      extern "C"
  5531. #  endif
  5532.    int F77_DUMMY_MAIN() { return 1; }
  5533. #endif
  5534. int
  5535. main ()
  5536. {
  5537.  
  5538.   ;
  5539.   return 0;
  5540. }
  5541. _ACEOF
  5542. rm -f conftest.$ac_objext
  5543. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5544.   (eval $ac_compile) 2>&5
  5545.   ac_status=$?
  5546.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547.   (exit $ac_status); } &&
  5548.          { ac_try='test -s conftest.$ac_objext'
  5549.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5550.   (eval $ac_try) 2>&5
  5551.   ac_status=$?
  5552.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5553.   (exit $ac_status); }; }; then
  5554.   ac_cv_sys_file_offset_bits=64; break
  5555. else
  5556.   echo "$as_me: failed program was:" >&5
  5557. cat conftest.$ac_ext >&5
  5558. fi
  5559. rm -f conftest.$ac_objext conftest.$ac_ext
  5560.   break
  5561. done
  5562. fi
  5563. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  5564. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  5565. if test "$ac_cv_sys_file_offset_bits" != no; then
  5566.  
  5567. cat >>confdefs.h <<_ACEOF
  5568. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5569. _ACEOF
  5570.  
  5571. fi
  5572. rm -f conftest*
  5573.   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  5574. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  5575. if test "${ac_cv_sys_large_files+set}" = set; then
  5576.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5577. else
  5578.   while :; do
  5579.   ac_cv_sys_large_files=no
  5580.   cat >conftest.$ac_ext <<_ACEOF
  5581. #line $LINENO "configure"
  5582. #include "confdefs.h"
  5583. #include <sys/types.h>
  5584.  /* Check that off_t can represent 2**63 - 1 correctly.
  5585.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5586.     since some C++ compilers masquerading as C compilers
  5587.     incorrectly reject 9223372036854775807.  */
  5588. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5589.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5590.                && LARGE_OFF_T % 2147483647 == 1)
  5591.               ? 1 : -1];
  5592. #ifdef F77_DUMMY_MAIN
  5593. #  ifdef __cplusplus
  5594.      extern "C"
  5595. #  endif
  5596.    int F77_DUMMY_MAIN() { return 1; }
  5597. #endif
  5598. int
  5599. main ()
  5600. {
  5601.  
  5602.   ;
  5603.   return 0;
  5604. }
  5605. _ACEOF
  5606. rm -f conftest.$ac_objext
  5607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5608.   (eval $ac_compile) 2>&5
  5609.   ac_status=$?
  5610.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611.   (exit $ac_status); } &&
  5612.          { ac_try='test -s conftest.$ac_objext'
  5613.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5614.   (eval $ac_try) 2>&5
  5615.   ac_status=$?
  5616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617.   (exit $ac_status); }; }; then
  5618.   break
  5619. else
  5620.   echo "$as_me: failed program was:" >&5
  5621. cat conftest.$ac_ext >&5
  5622. fi
  5623. rm -f conftest.$ac_objext conftest.$ac_ext
  5624.   cat >conftest.$ac_ext <<_ACEOF
  5625. #line $LINENO "configure"
  5626. #include "confdefs.h"
  5627. #define _LARGE_FILES 1
  5628. #include <sys/types.h>
  5629.  /* Check that off_t can represent 2**63 - 1 correctly.
  5630.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5631.     since some C++ compilers masquerading as C compilers
  5632.     incorrectly reject 9223372036854775807.  */
  5633. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5634.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5635.                && LARGE_OFF_T % 2147483647 == 1)
  5636.               ? 1 : -1];
  5637. #ifdef F77_DUMMY_MAIN
  5638. #  ifdef __cplusplus
  5639.      extern "C"
  5640. #  endif
  5641.    int F77_DUMMY_MAIN() { return 1; }
  5642. #endif
  5643. int
  5644. main ()
  5645. {
  5646.  
  5647.   ;
  5648.   return 0;
  5649. }
  5650. _ACEOF
  5651. rm -f conftest.$ac_objext
  5652. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5653.   (eval $ac_compile) 2>&5
  5654.   ac_status=$?
  5655.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656.   (exit $ac_status); } &&
  5657.          { ac_try='test -s conftest.$ac_objext'
  5658.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5659.   (eval $ac_try) 2>&5
  5660.   ac_status=$?
  5661.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662.   (exit $ac_status); }; }; then
  5663.   ac_cv_sys_large_files=1; break
  5664. else
  5665.   echo "$as_me: failed program was:" >&5
  5666. cat conftest.$ac_ext >&5
  5667. fi
  5668. rm -f conftest.$ac_objext conftest.$ac_ext
  5669.   break
  5670. done
  5671. fi
  5672. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  5673. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  5674. if test "$ac_cv_sys_large_files" != no; then
  5675.  
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define _LARGE_FILES $ac_cv_sys_large_files
  5678. _ACEOF
  5679.  
  5680. fi
  5681. rm -f conftest*
  5682. fi
  5683.  
  5684. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  5685. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  5686. if test "${ac_cv_sys_largefile_source+set}" = set; then
  5687.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689.   while :; do
  5690.   ac_cv_sys_largefile_source=no
  5691.   cat >conftest.$ac_ext <<_ACEOF
  5692. #line $LINENO "configure"
  5693. #include "confdefs.h"
  5694. #include <stdio.h>
  5695. #ifdef F77_DUMMY_MAIN
  5696. #  ifdef __cplusplus
  5697.      extern "C"
  5698. #  endif
  5699.    int F77_DUMMY_MAIN() { return 1; }
  5700. #endif
  5701. int
  5702. main ()
  5703. {
  5704. return !fseeko;
  5705.   ;
  5706.   return 0;
  5707. }
  5708. _ACEOF
  5709. rm -f conftest.$ac_objext
  5710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5711.   (eval $ac_compile) 2>&5
  5712.   ac_status=$?
  5713.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714.   (exit $ac_status); } &&
  5715.          { ac_try='test -s conftest.$ac_objext'
  5716.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5717.   (eval $ac_try) 2>&5
  5718.   ac_status=$?
  5719.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5720.   (exit $ac_status); }; }; then
  5721.   break
  5722. else
  5723.   echo "$as_me: failed program was:" >&5
  5724. cat conftest.$ac_ext >&5
  5725. fi
  5726. rm -f conftest.$ac_objext conftest.$ac_ext
  5727.   cat >conftest.$ac_ext <<_ACEOF
  5728. #line $LINENO "configure"
  5729. #include "confdefs.h"
  5730. #define _LARGEFILE_SOURCE 1
  5731. #include <stdio.h>
  5732. #ifdef F77_DUMMY_MAIN
  5733. #  ifdef __cplusplus
  5734.      extern "C"
  5735. #  endif
  5736.    int F77_DUMMY_MAIN() { return 1; }
  5737. #endif
  5738. int
  5739. main ()
  5740. {
  5741. return !fseeko;
  5742.   ;
  5743.   return 0;
  5744. }
  5745. _ACEOF
  5746. rm -f conftest.$ac_objext
  5747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5748.   (eval $ac_compile) 2>&5
  5749.   ac_status=$?
  5750.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751.   (exit $ac_status); } &&
  5752.          { ac_try='test -s conftest.$ac_objext'
  5753.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5754.   (eval $ac_try) 2>&5
  5755.   ac_status=$?
  5756.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757.   (exit $ac_status); }; }; then
  5758.   ac_cv_sys_largefile_source=1; break
  5759. else
  5760.   echo "$as_me: failed program was:" >&5
  5761. cat conftest.$ac_ext >&5
  5762. fi
  5763. rm -f conftest.$ac_objext conftest.$ac_ext
  5764.   break
  5765. done
  5766. fi
  5767. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  5768. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  5769. if test "$ac_cv_sys_largefile_source" != no; then
  5770.  
  5771. cat >>confdefs.h <<_ACEOF
  5772. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  5773. _ACEOF
  5774.  
  5775. fi
  5776. rm -f conftest*
  5777.  
  5778. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  5779. # in glibc 2.1.3, but that breaks too many other things.
  5780. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  5781. echo "$as_me:$LINENO: checking for fseeko" >&5
  5782. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  5783. if test "${ac_cv_func_fseeko+set}" = set; then
  5784.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5785. else
  5786.   cat >conftest.$ac_ext <<_ACEOF
  5787. #line $LINENO "configure"
  5788. #include "confdefs.h"
  5789. #include <stdio.h>
  5790. #ifdef F77_DUMMY_MAIN
  5791. #  ifdef __cplusplus
  5792.      extern "C"
  5793. #  endif
  5794.    int F77_DUMMY_MAIN() { return 1; }
  5795. #endif
  5796. int
  5797. main ()
  5798. {
  5799. return fseeko && fseeko (stdin, 0, 0);
  5800.   ;
  5801.   return 0;
  5802. }
  5803. _ACEOF
  5804. rm -f conftest.$ac_objext conftest$ac_exeext
  5805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5806.   (eval $ac_link) 2>&5
  5807.   ac_status=$?
  5808.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809.   (exit $ac_status); } &&
  5810.          { ac_try='test -s conftest$ac_exeext'
  5811.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5812.   (eval $ac_try) 2>&5
  5813.   ac_status=$?
  5814.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5815.   (exit $ac_status); }; }; then
  5816.   ac_cv_func_fseeko=yes
  5817. else
  5818.   echo "$as_me: failed program was:" >&5
  5819. cat conftest.$ac_ext >&5
  5820. ac_cv_func_fseeko=no
  5821. fi
  5822. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5823. fi
  5824. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  5825. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  5826. if test $ac_cv_func_fseeko = yes; then
  5827.  
  5828. cat >>confdefs.h <<\_ACEOF
  5829. #define HAVE_FSEEKO 1
  5830. _ACEOF
  5831.  
  5832. fi
  5833.  
  5834.  
  5835. for ac_func in fseek64
  5836. do
  5837. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5838. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5839. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5840. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5841.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. else
  5843.   cat >conftest.$ac_ext <<_ACEOF
  5844. #line $LINENO "configure"
  5845. #include "confdefs.h"
  5846. /* System header to define __stub macros and hopefully few prototypes,
  5847.     which can conflict with char $ac_func (); below.  */
  5848. #include <assert.h>
  5849. /* Override any gcc2 internal prototype to avoid an error.  */
  5850. #ifdef __cplusplus
  5851. extern "C"
  5852. #endif
  5853. /* We use char because int might match the return type of a gcc2
  5854.    builtin and then its argument prototype would still apply.  */
  5855. char $ac_func ();
  5856. char (*f) ();
  5857.  
  5858. #ifdef F77_DUMMY_MAIN
  5859. #  ifdef __cplusplus
  5860.      extern "C"
  5861. #  endif
  5862.    int F77_DUMMY_MAIN() { return 1; }
  5863. #endif
  5864. int
  5865. main ()
  5866. {
  5867. /* The GNU C library defines this for functions which it implements
  5868.     to always fail with ENOSYS.  Some functions are actually named
  5869.     something starting with __ and the normal name is an alias.  */
  5870. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5871. choke me
  5872. #else
  5873. f = $ac_func;
  5874. #endif
  5875.  
  5876.   ;
  5877.   return 0;
  5878. }
  5879. _ACEOF
  5880. rm -f conftest.$ac_objext conftest$ac_exeext
  5881. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5882.   (eval $ac_link) 2>&5
  5883.   ac_status=$?
  5884.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885.   (exit $ac_status); } &&
  5886.          { ac_try='test -s conftest$ac_exeext'
  5887.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5888.   (eval $ac_try) 2>&5
  5889.   ac_status=$?
  5890.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891.   (exit $ac_status); }; }; then
  5892.   eval "$as_ac_var=yes"
  5893. else
  5894.   echo "$as_me: failed program was:" >&5
  5895. cat conftest.$ac_ext >&5
  5896. eval "$as_ac_var=no"
  5897. fi
  5898. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5899. fi
  5900. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5901. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5902. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5903.   cat >>confdefs.h <<_ACEOF
  5904. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5905. _ACEOF
  5906.  xpdf_cv_func_fseek64=yes
  5907. else
  5908.   xpdf_cv_func_fseek64=no
  5909. fi
  5910. done
  5911.  
  5912.  
  5913. for ac_func in ftell64
  5914. do
  5915. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5916. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5917. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5918. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5919.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5920. else
  5921.   cat >conftest.$ac_ext <<_ACEOF
  5922. #line $LINENO "configure"
  5923. #include "confdefs.h"
  5924. /* System header to define __stub macros and hopefully few prototypes,
  5925.     which can conflict with char $ac_func (); below.  */
  5926. #include <assert.h>
  5927. /* Override any gcc2 internal prototype to avoid an error.  */
  5928. #ifdef __cplusplus
  5929. extern "C"
  5930. #endif
  5931. /* We use char because int might match the return type of a gcc2
  5932.    builtin and then its argument prototype would still apply.  */
  5933. char $ac_func ();
  5934. char (*f) ();
  5935.  
  5936. #ifdef F77_DUMMY_MAIN
  5937. #  ifdef __cplusplus
  5938.      extern "C"
  5939. #  endif
  5940.    int F77_DUMMY_MAIN() { return 1; }
  5941. #endif
  5942. int
  5943. main ()
  5944. {
  5945. /* The GNU C library defines this for functions which it implements
  5946.     to always fail with ENOSYS.  Some functions are actually named
  5947.     something starting with __ and the normal name is an alias.  */
  5948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5949. choke me
  5950. #else
  5951. f = $ac_func;
  5952. #endif
  5953.  
  5954.   ;
  5955.   return 0;
  5956. }
  5957. _ACEOF
  5958. rm -f conftest.$ac_objext conftest$ac_exeext
  5959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5960.   (eval $ac_link) 2>&5
  5961.   ac_status=$?
  5962.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5963.   (exit $ac_status); } &&
  5964.          { ac_try='test -s conftest$ac_exeext'
  5965.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5966.   (eval $ac_try) 2>&5
  5967.   ac_status=$?
  5968.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5969.   (exit $ac_status); }; }; then
  5970.   eval "$as_ac_var=yes"
  5971. else
  5972.   echo "$as_me: failed program was:" >&5
  5973. cat conftest.$ac_ext >&5
  5974. eval "$as_ac_var=no"
  5975. fi
  5976. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5977. fi
  5978. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5979. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5980. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5981.   cat >>confdefs.h <<_ACEOF
  5982. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5983. _ACEOF
  5984.  xpdf_cv_func_ftell64=yes
  5985. else
  5986.   xpdf_cv_func_ftell64=no
  5987. fi
  5988. done
  5989.  
  5990. if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then
  5991.   cat >>confdefs.h <<\_ACEOF
  5992. #define HAVE_FSEEK64 1
  5993. _ACEOF
  5994.  
  5995. fi
  5996.  
  5997. if test -z "$no_x"; then
  5998.   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5999. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6000. if test "${ac_cv_header_stdc+set}" = set; then
  6001.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6002. else
  6003.   cat >conftest.$ac_ext <<_ACEOF
  6004. #line $LINENO "configure"
  6005. #include "confdefs.h"
  6006. #include <stdlib.h>
  6007. #include <stdarg.h>
  6008. #include <string.h>
  6009. #include <float.h>
  6010.  
  6011. _ACEOF
  6012. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6013.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6014.   ac_status=$?
  6015.   egrep -v '^ *\+' conftest.er1 >conftest.err
  6016.   rm -f conftest.er1
  6017.   cat conftest.err >&5
  6018.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019.   (exit $ac_status); } >/dev/null; then
  6020.   if test -s conftest.err; then
  6021.     ac_cpp_err=$ac_c_preproc_warn_flag
  6022.   else
  6023.     ac_cpp_err=
  6024.   fi
  6025. else
  6026.   ac_cpp_err=yes
  6027. fi
  6028. if test -z "$ac_cpp_err"; then
  6029.   ac_cv_header_stdc=yes
  6030. else
  6031.   echo "$as_me: failed program was:" >&5
  6032.   cat conftest.$ac_ext >&5
  6033.   ac_cv_header_stdc=no
  6034. fi
  6035. rm -f conftest.err conftest.$ac_ext
  6036.  
  6037. if test $ac_cv_header_stdc = yes; then
  6038.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6039.   cat >conftest.$ac_ext <<_ACEOF
  6040. #line $LINENO "configure"
  6041. #include "confdefs.h"
  6042. #include <string.h>
  6043.  
  6044. _ACEOF
  6045. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6046.   egrep "memchr" >/dev/null 2>&1; then
  6047.   :
  6048. else
  6049.   ac_cv_header_stdc=no
  6050. fi
  6051. rm -f conftest*
  6052.  
  6053. fi
  6054.  
  6055. if test $ac_cv_header_stdc = yes; then
  6056.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6057.   cat >conftest.$ac_ext <<_ACEOF
  6058. #line $LINENO "configure"
  6059. #include "confdefs.h"
  6060. #include <stdlib.h>
  6061.  
  6062. _ACEOF
  6063. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6064.   egrep "free" >/dev/null 2>&1; then
  6065.   :
  6066. else
  6067.   ac_cv_header_stdc=no
  6068. fi
  6069. rm -f conftest*
  6070.  
  6071. fi
  6072.  
  6073. if test $ac_cv_header_stdc = yes; then
  6074.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6075.   if test "$cross_compiling" = yes; then
  6076.   :
  6077. else
  6078.   cat >conftest.$ac_ext <<_ACEOF
  6079. #line $LINENO "configure"
  6080. #include "confdefs.h"
  6081. #include <ctype.h>
  6082. #if ((' ' & 0x0FF) == 0x020)
  6083. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6084. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6085. #else
  6086. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  6087.                      || ('j' <= (c) && (c) <= 'r') \
  6088.                      || ('s' <= (c) && (c) <= 'z'))
  6089. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6090. #endif
  6091.  
  6092. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6093. int
  6094. main ()
  6095. {
  6096.   int i;
  6097.   for (i = 0; i < 256; i++)
  6098.     if (XOR (islower (i), ISLOWER (i))
  6099.         || toupper (i) != TOUPPER (i))
  6100.       exit(2);
  6101.   exit (0);
  6102. }
  6103. _ACEOF
  6104. rm -f conftest$ac_exeext
  6105. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6106.   (eval $ac_link) 2>&5
  6107.   ac_status=$?
  6108.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6109.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6110.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6111.   (eval $ac_try) 2>&5
  6112.   ac_status=$?
  6113.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114.   (exit $ac_status); }; }; then
  6115.   :
  6116. else
  6117.   echo "$as_me: program exited with status $ac_status" >&5
  6118. echo "$as_me: failed program was:" >&5
  6119. cat conftest.$ac_ext >&5
  6120. ( exit $ac_status )
  6121. ac_cv_header_stdc=no
  6122. fi
  6123. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6124. fi
  6125. fi
  6126. fi
  6127. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6128. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6129. if test $ac_cv_header_stdc = yes; then
  6130.  
  6131. cat >>confdefs.h <<\_ACEOF
  6132. #define STDC_HEADERS 1
  6133. _ACEOF
  6134.  
  6135. fi
  6136.  
  6137. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6138.  
  6139.  
  6140.  
  6141.  
  6142.  
  6143.  
  6144.  
  6145.  
  6146.  
  6147. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6148.                   inttypes.h stdint.h unistd.h
  6149. do
  6150. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6151. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6152. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6153. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6154.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6155. else
  6156.   cat >conftest.$ac_ext <<_ACEOF
  6157. #line $LINENO "configure"
  6158. #include "confdefs.h"
  6159. $ac_includes_default
  6160.  
  6161. #include <$ac_header>
  6162. _ACEOF
  6163. rm -f conftest.$ac_objext
  6164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6165.   (eval $ac_compile) 2>&5
  6166.   ac_status=$?
  6167.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6168.   (exit $ac_status); } &&
  6169.          { ac_try='test -s conftest.$ac_objext'
  6170.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6171.   (eval $ac_try) 2>&5
  6172.   ac_status=$?
  6173.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6174.   (exit $ac_status); }; }; then
  6175.   eval "$as_ac_Header=yes"
  6176. else
  6177.   echo "$as_me: failed program was:" >&5
  6178. cat conftest.$ac_ext >&5
  6179. eval "$as_ac_Header=no"
  6180. fi
  6181. rm -f conftest.$ac_objext conftest.$ac_ext
  6182. fi
  6183. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6184. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6185. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6186.   cat >>confdefs.h <<_ACEOF
  6187. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6188. _ACEOF
  6189.  
  6190. fi
  6191.  
  6192. done
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212.  
  6213. # Check whether --with-Xpm-library or --without-Xpm-library was given.
  6214. if test "${with_Xpm_library+set}" = set; then
  6215.   withval="$with_Xpm_library"
  6216.   smr_cv_with_Xpm_library=$withval
  6217. fi;
  6218.  
  6219.       echo "$as_me:$LINENO: checking whether to use Xpm library" >&5
  6220. echo $ECHO_N "checking whether to use Xpm library... $ECHO_C" >&6
  6221. if test "${smr_cv_with_Xpm_library+set}" = set; then
  6222.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6223. else
  6224.   smr_cv_with_Xpm_library=maybe
  6225. fi
  6226. echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_library" >&5
  6227. echo "${ECHO_T}$smr_cv_with_Xpm_library" >&6
  6228.  
  6229.  
  6230.   case x"$smr_cv_with_Xpm_library" in
  6231.       xyes | xmaybe)
  6232.           Xpm_LIBS="-lXpm"
  6233.           with_Xpm=$smr_cv_with_Xpm_library
  6234.           ;;
  6235.       xno)
  6236.           Xpm_LIBS=
  6237.           with_Xpm=no
  6238.           ;;
  6239.       *)
  6240.           if test -f "$smr_cv_with_Xpm_library"; then
  6241.             Xpm_LIBS=$smr_cv_with_Xpm_library
  6242.           elif test -d "$smr_cv_with_Xpm_library"; then
  6243.             Xpm_LIBS="-L$smr_cv_with_Xpm_library -lXpm"
  6244.           else
  6245.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  6246. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  6247.    { (exit 1); exit 1; }; }
  6248.           fi
  6249.           with_Xpm=yes
  6250.           ;;
  6251.   esac
  6252.  
  6253.  
  6254.  
  6255.  
  6256.  
  6257.  
  6258.  
  6259.   if test ! x"$with_Xpm" = xno; then
  6260.  
  6261.     # If we got this far, then the user didn't explicitly ask not to use
  6262.     # the library.
  6263.  
  6264.  
  6265.  
  6266.  
  6267.  
  6268.  
  6269.  
  6270.  
  6271. # Check whether --with-Xpm-includes or --without-Xpm-includes was given.
  6272. if test "${with_Xpm_includes+set}" = set; then
  6273.   withval="$with_Xpm_includes"
  6274.   smr_cv_with_Xpm_includes=$withval
  6275. fi;
  6276.  
  6277.       echo "$as_me:$LINENO: checking where to find the Xpm header files" >&5
  6278. echo $ECHO_N "checking where to find the Xpm header files... $ECHO_C" >&6
  6279. if test "${smr_cv_with_Xpm_includes+set}" = set; then
  6280.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282.   smr_cv_with_Xpm_includes=
  6283. fi
  6284. echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_includes" >&5
  6285. echo "${ECHO_T}$smr_cv_with_Xpm_includes" >&6
  6286.  
  6287.   if test ! x"$smr_cv_with_Xpm_includes" = x; then
  6288.     if test -d "$smr_cv_with_Xpm_includes"; then
  6289.       Xpm_CFLAGS="-I$smr_cv_with_Xpm_includes"
  6290.     else
  6291.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  6292. echo "$as_me: error: argument must be a directory" >&2;}
  6293.    { (exit 1); exit 1; }; }
  6294.     fi
  6295.   else
  6296.     Xpm_CFLAGS=
  6297.   fi
  6298.  
  6299.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  6300.   smr_save_CPPFLAGS="$CPPFLAGS"
  6301.   CPPFLAGS="$CPPFLAGS $Xpm_CFLAGS $X_CFLAGS"
  6302.  
  6303.  
  6304. for ac_header in X11/xpm.h
  6305. do
  6306. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6308.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  6309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6311.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6312. fi
  6313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6314. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6315. else
  6316.   # Is the header compilable?
  6317. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6318. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6319. cat >conftest.$ac_ext <<_ACEOF
  6320. #line $LINENO "configure"
  6321. #include "confdefs.h"
  6322. $ac_includes_default
  6323. #include <$ac_header>
  6324. _ACEOF
  6325. rm -f conftest.$ac_objext
  6326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6327.   (eval $ac_compile) 2>&5
  6328.   ac_status=$?
  6329.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330.   (exit $ac_status); } &&
  6331.          { ac_try='test -s conftest.$ac_objext'
  6332.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6333.   (eval $ac_try) 2>&5
  6334.   ac_status=$?
  6335.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6336.   (exit $ac_status); }; }; then
  6337.   ac_header_compiler=yes
  6338. else
  6339.   echo "$as_me: failed program was:" >&5
  6340. cat conftest.$ac_ext >&5
  6341. ac_header_compiler=no
  6342. fi
  6343. rm -f conftest.$ac_objext conftest.$ac_ext
  6344. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6345. echo "${ECHO_T}$ac_header_compiler" >&6
  6346.  
  6347. # Is the header present?
  6348. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6349. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6350. cat >conftest.$ac_ext <<_ACEOF
  6351. #line $LINENO "configure"
  6352. #include "confdefs.h"
  6353. #include <$ac_header>
  6354. _ACEOF
  6355. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6356.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6357.   ac_status=$?
  6358.   egrep -v '^ *\+' conftest.er1 >conftest.err
  6359.   rm -f conftest.er1
  6360.   cat conftest.err >&5
  6361.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362.   (exit $ac_status); } >/dev/null; then
  6363.   if test -s conftest.err; then
  6364.     ac_cpp_err=$ac_c_preproc_warn_flag
  6365.   else
  6366.     ac_cpp_err=
  6367.   fi
  6368. else
  6369.   ac_cpp_err=yes
  6370. fi
  6371. if test -z "$ac_cpp_err"; then
  6372.   ac_header_preproc=yes
  6373. else
  6374.   echo "$as_me: failed program was:" >&5
  6375.   cat conftest.$ac_ext >&5
  6376.   ac_header_preproc=no
  6377. fi
  6378. rm -f conftest.err conftest.$ac_ext
  6379. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6380. echo "${ECHO_T}$ac_header_preproc" >&6
  6381.  
  6382. # So?  What about this header?
  6383. case $ac_header_compiler:$ac_header_preproc in
  6384.   yes:no )
  6385.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6386. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6387.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6388. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6389.   no:yes )
  6390.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6391. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6392.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6393. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6394.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6395. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6396. esac
  6397. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6399. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6400.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6401. else
  6402.   eval "$as_ac_Header=$ac_header_preproc"
  6403. fi
  6404. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6405. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6406.  
  6407. fi
  6408. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6409.   cat >>confdefs.h <<_ACEOF
  6410. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6411. _ACEOF
  6412.  smr_have_Xpm_header=yes
  6413. else
  6414.   smr_have_Xpm_header=no
  6415. fi
  6416.  
  6417. done
  6418.  
  6419.  
  6420.   if test x"$smr_test_CPPFLAGS" = xset; then
  6421.     CPPFLAGS=$smr_save_CPPFLAGS
  6422.   else
  6423.     unset CPPFLAGS
  6424.   fi
  6425.  
  6426.  
  6427.  
  6428.  
  6429.  
  6430.  
  6431.  
  6432.     # We need only look for the library if the header has been found
  6433.     # (or no header is needed).
  6434.     if test $smr_have_Xpm_header != no; then
  6435.  
  6436.        echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
  6437. echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
  6438. if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
  6439.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6440. else
  6441.   ac_check_lib_save_LIBS=$LIBS
  6442. LIBS="-lXpm $Xpm_CFLAGS $X_CFLAGS $Xpm_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  6443. cat >conftest.$ac_ext <<_ACEOF
  6444. #line $LINENO "configure"
  6445. #include "confdefs.h"
  6446.  
  6447. /* Override any gcc2 internal prototype to avoid an error.  */
  6448. #ifdef __cplusplus
  6449. extern "C"
  6450. #endif
  6451. /* We use char because int might match the return type of a gcc2
  6452.    builtin and then its argument prototype would still apply.  */
  6453. char XpmCreatePixmapFromData ();
  6454. #ifdef F77_DUMMY_MAIN
  6455. #  ifdef __cplusplus
  6456.      extern "C"
  6457. #  endif
  6458.    int F77_DUMMY_MAIN() { return 1; }
  6459. #endif
  6460. int
  6461. main ()
  6462. {
  6463. XpmCreatePixmapFromData ();
  6464.   ;
  6465.   return 0;
  6466. }
  6467. _ACEOF
  6468. rm -f conftest.$ac_objext conftest$ac_exeext
  6469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6470.   (eval $ac_link) 2>&5
  6471.   ac_status=$?
  6472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473.   (exit $ac_status); } &&
  6474.          { ac_try='test -s conftest$ac_exeext'
  6475.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6476.   (eval $ac_try) 2>&5
  6477.   ac_status=$?
  6478.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479.   (exit $ac_status); }; }; then
  6480.   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
  6481. else
  6482.   echo "$as_me: failed program was:" >&5
  6483. cat conftest.$ac_ext >&5
  6484. ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
  6485. fi
  6486. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6487. LIBS=$ac_check_lib_save_LIBS
  6488. fi
  6489. echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
  6490. echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
  6491. if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
  6492.   smr_have_Xpm_library=yes
  6493. else
  6494.   smr_have_Xpm_library=no
  6495. fi
  6496.  
  6497.     fi
  6498.  
  6499.     if test x"$smr_have_Xpm_library" = xyes; then
  6500.       echo "$as_me:$LINENO: result: using Xpm library" >&5
  6501. echo "${ECHO_T}using Xpm library" >&6
  6502.     else
  6503.       Xpm_LIBS=
  6504.       Xpm_CFLAGS=
  6505.  
  6506.       if test x"$with_Xpm" = xmaybe; then
  6507.         echo "$as_me:$LINENO: result: not using Xpm library" >&5
  6508. echo "${ECHO_T}not using Xpm library" >&6
  6509.       else
  6510.         { echo "$as_me:$LINENO: WARNING: requested Xpm library not found!" >&5
  6511. echo "$as_me: WARNING: requested Xpm library not found!" >&2;}
  6512.       fi
  6513.     fi
  6514.   fi
  6515.  
  6516.  
  6517.  
  6518.  
  6519.  
  6520.  
  6521.  
  6522.  
  6523.  
  6524.  
  6525.  
  6526.  
  6527.  
  6528. fi
  6529.  
  6530. if test -z "$no_x"; then
  6531.  
  6532.  
  6533.  
  6534.  
  6535.  
  6536.  
  6537.  
  6538.  
  6539.  
  6540.  
  6541.  
  6542.  
  6543.  
  6544.  
  6545.  
  6546.  
  6547.  
  6548.  
  6549. # Check whether --with-Xext-library or --without-Xext-library was given.
  6550. if test "${with_Xext_library+set}" = set; then
  6551.   withval="$with_Xext_library"
  6552.   smr_cv_with_Xext_library=$withval
  6553. fi;
  6554.  
  6555.       echo "$as_me:$LINENO: checking whether to use Xext library" >&5
  6556. echo $ECHO_N "checking whether to use Xext library... $ECHO_C" >&6
  6557. if test "${smr_cv_with_Xext_library+set}" = set; then
  6558.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6559. else
  6560.   smr_cv_with_Xext_library=maybe
  6561. fi
  6562. echo "$as_me:$LINENO: result: $smr_cv_with_Xext_library" >&5
  6563. echo "${ECHO_T}$smr_cv_with_Xext_library" >&6
  6564.  
  6565.  
  6566.   case x"$smr_cv_with_Xext_library" in
  6567.       xyes | xmaybe)
  6568.           Xext_LIBS="-lXext"
  6569.           with_Xext=$smr_cv_with_Xext_library
  6570.           ;;
  6571.       xno)
  6572.           Xext_LIBS=
  6573.           with_Xext=no
  6574.           ;;
  6575.       *)
  6576.           if test -f "$smr_cv_with_Xext_library"; then
  6577.             Xext_LIBS=$smr_cv_with_Xext_library
  6578.           elif test -d "$smr_cv_with_Xext_library"; then
  6579.             Xext_LIBS="-L$smr_cv_with_Xext_library -lXext"
  6580.           else
  6581.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  6582. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  6583.    { (exit 1); exit 1; }; }
  6584.           fi
  6585.           with_Xext=yes
  6586.           ;;
  6587.   esac
  6588.  
  6589.  
  6590.  
  6591.  
  6592.  
  6593.  
  6594.  
  6595.   if test ! x"$with_Xext" = xno; then
  6596.  
  6597.     # If we got this far, then the user didn't explicitly ask not to use
  6598.     # the library.
  6599.  
  6600.  
  6601.  
  6602.  
  6603.  
  6604.  
  6605.  
  6606.  
  6607. # Check whether --with-Xext-includes or --without-Xext-includes was given.
  6608. if test "${with_Xext_includes+set}" = set; then
  6609.   withval="$with_Xext_includes"
  6610.   smr_cv_with_Xext_includes=$withval
  6611. fi;
  6612.  
  6613.       echo "$as_me:$LINENO: checking where to find the Xext header files" >&5
  6614. echo $ECHO_N "checking where to find the Xext header files... $ECHO_C" >&6
  6615. if test "${smr_cv_with_Xext_includes+set}" = set; then
  6616.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6617. else
  6618.   smr_cv_with_Xext_includes=
  6619. fi
  6620. echo "$as_me:$LINENO: result: $smr_cv_with_Xext_includes" >&5
  6621. echo "${ECHO_T}$smr_cv_with_Xext_includes" >&6
  6622.  
  6623.   if test ! x"$smr_cv_with_Xext_includes" = x; then
  6624.     if test -d "$smr_cv_with_Xext_includes"; then
  6625.       Xext_CFLAGS="-I$smr_cv_with_Xext_includes"
  6626.     else
  6627.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  6628. echo "$as_me: error: argument must be a directory" >&2;}
  6629.    { (exit 1); exit 1; }; }
  6630.     fi
  6631.   else
  6632.     Xext_CFLAGS=
  6633.   fi
  6634.  
  6635.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  6636.   smr_save_CPPFLAGS="$CPPFLAGS"
  6637.   CPPFLAGS="$CPPFLAGS $Xext_CFLAGS $X_CFLAGS"
  6638.  
  6639.  
  6640. for ac_header in X11/Xlib.h
  6641. do
  6642. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6643. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6644.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  6645. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6646. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6647.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6648. fi
  6649. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6650. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6651. else
  6652.   # Is the header compilable?
  6653. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6654. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6655. cat >conftest.$ac_ext <<_ACEOF
  6656. #line $LINENO "configure"
  6657. #include "confdefs.h"
  6658. $ac_includes_default
  6659. #include <$ac_header>
  6660. _ACEOF
  6661. rm -f conftest.$ac_objext
  6662. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6663.   (eval $ac_compile) 2>&5
  6664.   ac_status=$?
  6665.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6666.   (exit $ac_status); } &&
  6667.          { ac_try='test -s conftest.$ac_objext'
  6668.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6669.   (eval $ac_try) 2>&5
  6670.   ac_status=$?
  6671.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672.   (exit $ac_status); }; }; then
  6673.   ac_header_compiler=yes
  6674. else
  6675.   echo "$as_me: failed program was:" >&5
  6676. cat conftest.$ac_ext >&5
  6677. ac_header_compiler=no
  6678. fi
  6679. rm -f conftest.$ac_objext conftest.$ac_ext
  6680. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6681. echo "${ECHO_T}$ac_header_compiler" >&6
  6682.  
  6683. # Is the header present?
  6684. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6685. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6686. cat >conftest.$ac_ext <<_ACEOF
  6687. #line $LINENO "configure"
  6688. #include "confdefs.h"
  6689. #include <$ac_header>
  6690. _ACEOF
  6691. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6692.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6693.   ac_status=$?
  6694.   egrep -v '^ *\+' conftest.er1 >conftest.err
  6695.   rm -f conftest.er1
  6696.   cat conftest.err >&5
  6697.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698.   (exit $ac_status); } >/dev/null; then
  6699.   if test -s conftest.err; then
  6700.     ac_cpp_err=$ac_c_preproc_warn_flag
  6701.   else
  6702.     ac_cpp_err=
  6703.   fi
  6704. else
  6705.   ac_cpp_err=yes
  6706. fi
  6707. if test -z "$ac_cpp_err"; then
  6708.   ac_header_preproc=yes
  6709. else
  6710.   echo "$as_me: failed program was:" >&5
  6711.   cat conftest.$ac_ext >&5
  6712.   ac_header_preproc=no
  6713. fi
  6714. rm -f conftest.err conftest.$ac_ext
  6715. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6716. echo "${ECHO_T}$ac_header_preproc" >&6
  6717.  
  6718. # So?  What about this header?
  6719. case $ac_header_compiler:$ac_header_preproc in
  6720.   yes:no )
  6721.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6722. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6723.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6724. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6725.   no:yes )
  6726.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6727. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6728.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6729. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6730.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6731. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6732. esac
  6733. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6734. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6735. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6736.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6737. else
  6738.   eval "$as_ac_Header=$ac_header_preproc"
  6739. fi
  6740. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6741. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6742.  
  6743. fi
  6744. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6745.   cat >>confdefs.h <<_ACEOF
  6746. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6747. _ACEOF
  6748.  smr_have_Xext_header=yes
  6749. else
  6750.   smr_have_Xext_header=no
  6751. fi
  6752.  
  6753. done
  6754.  
  6755.  
  6756.   if test x"$smr_test_CPPFLAGS" = xset; then
  6757.     CPPFLAGS=$smr_save_CPPFLAGS
  6758.   else
  6759.     unset CPPFLAGS
  6760.   fi
  6761.  
  6762.  
  6763.  
  6764.  
  6765.  
  6766.  
  6767.  
  6768.     # We need only look for the library if the header has been found
  6769.     # (or no header is needed).
  6770.     if test $smr_have_Xext_header != no; then
  6771.  
  6772.        echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
  6773. echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
  6774. if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
  6775.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6776. else
  6777.   ac_check_lib_save_LIBS=$LIBS
  6778. LIBS="-lXext $Xext_CFLAGS $X_CFLAGS $Xext_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. #line $LINENO "configure"
  6781. #include "confdefs.h"
  6782.  
  6783. /* Override any gcc2 internal prototype to avoid an error.  */
  6784. #ifdef __cplusplus
  6785. extern "C"
  6786. #endif
  6787. /* We use char because int might match the return type of a gcc2
  6788.    builtin and then its argument prototype would still apply.  */
  6789. char XextAddDisplay ();
  6790. #ifdef F77_DUMMY_MAIN
  6791. #  ifdef __cplusplus
  6792.      extern "C"
  6793. #  endif
  6794.    int F77_DUMMY_MAIN() { return 1; }
  6795. #endif
  6796. int
  6797. main ()
  6798. {
  6799. XextAddDisplay ();
  6800.   ;
  6801.   return 0;
  6802. }
  6803. _ACEOF
  6804. rm -f conftest.$ac_objext conftest$ac_exeext
  6805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6806.   (eval $ac_link) 2>&5
  6807.   ac_status=$?
  6808.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6809.   (exit $ac_status); } &&
  6810.          { ac_try='test -s conftest$ac_exeext'
  6811.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6812.   (eval $ac_try) 2>&5
  6813.   ac_status=$?
  6814.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6815.   (exit $ac_status); }; }; then
  6816.   ac_cv_lib_Xext_XextAddDisplay=yes
  6817. else
  6818.   echo "$as_me: failed program was:" >&5
  6819. cat conftest.$ac_ext >&5
  6820. ac_cv_lib_Xext_XextAddDisplay=no
  6821. fi
  6822. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6823. LIBS=$ac_check_lib_save_LIBS
  6824. fi
  6825. echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
  6826. echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
  6827. if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
  6828.   smr_have_Xext_library=yes
  6829. else
  6830.   smr_have_Xext_library=no
  6831. fi
  6832.  
  6833.     fi
  6834.  
  6835.     if test x"$smr_have_Xext_library" = xyes; then
  6836.       echo "$as_me:$LINENO: result: using Xext library" >&5
  6837. echo "${ECHO_T}using Xext library" >&6
  6838.     else
  6839.       Xext_LIBS=
  6840.       Xext_CFLAGS=
  6841.  
  6842.       if test x"$with_Xext" = xmaybe; then
  6843.         echo "$as_me:$LINENO: result: not using Xext library" >&5
  6844. echo "${ECHO_T}not using Xext library" >&6
  6845.       else
  6846.         { echo "$as_me:$LINENO: WARNING: requested Xext library not found!" >&5
  6847. echo "$as_me: WARNING: requested Xext library not found!" >&2;}
  6848.       fi
  6849.     fi
  6850.   fi
  6851.  
  6852.  
  6853.  
  6854.  
  6855.  
  6856.  
  6857.  
  6858.  
  6859.  
  6860.  
  6861.  
  6862.  
  6863.  
  6864.  
  6865.  
  6866.  
  6867.  
  6868.  
  6869.  
  6870.  
  6871.  
  6872.  
  6873.  
  6874.  
  6875.  
  6876.  
  6877.  
  6878.  
  6879.  
  6880.  
  6881.  
  6882. # Check whether --with-Xp-library or --without-Xp-library was given.
  6883. if test "${with_Xp_library+set}" = set; then
  6884.   withval="$with_Xp_library"
  6885.   smr_cv_with_Xp_library=$withval
  6886. fi;
  6887.  
  6888.       echo "$as_me:$LINENO: checking whether to use Xp library" >&5
  6889. echo $ECHO_N "checking whether to use Xp library... $ECHO_C" >&6
  6890. if test "${smr_cv_with_Xp_library+set}" = set; then
  6891.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893.   smr_cv_with_Xp_library=maybe
  6894. fi
  6895. echo "$as_me:$LINENO: result: $smr_cv_with_Xp_library" >&5
  6896. echo "${ECHO_T}$smr_cv_with_Xp_library" >&6
  6897.  
  6898.  
  6899.   case x"$smr_cv_with_Xp_library" in
  6900.       xyes | xmaybe)
  6901.           Xp_LIBS="-lXp"
  6902.           with_Xp=$smr_cv_with_Xp_library
  6903.           ;;
  6904.       xno)
  6905.           Xp_LIBS=
  6906.           with_Xp=no
  6907.           ;;
  6908.       *)
  6909.           if test -f "$smr_cv_with_Xp_library"; then
  6910.             Xp_LIBS=$smr_cv_with_Xp_library
  6911.           elif test -d "$smr_cv_with_Xp_library"; then
  6912.             Xp_LIBS="-L$smr_cv_with_Xp_library -lXp"
  6913.           else
  6914.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  6915. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  6916.    { (exit 1); exit 1; }; }
  6917.           fi
  6918.           with_Xp=yes
  6919.           ;;
  6920.   esac
  6921.  
  6922.  
  6923.  
  6924.  
  6925.  
  6926.  
  6927.  
  6928.   if test ! x"$with_Xp" = xno; then
  6929.  
  6930.     # If we got this far, then the user didn't explicitly ask not to use
  6931.     # the library.
  6932.  
  6933.  
  6934.  
  6935.  
  6936.  
  6937.  
  6938.  
  6939.  
  6940. # Check whether --with-Xp-includes or --without-Xp-includes was given.
  6941. if test "${with_Xp_includes+set}" = set; then
  6942.   withval="$with_Xp_includes"
  6943.   smr_cv_with_Xp_includes=$withval
  6944. fi;
  6945.  
  6946.       echo "$as_me:$LINENO: checking where to find the Xp header files" >&5
  6947. echo $ECHO_N "checking where to find the Xp header files... $ECHO_C" >&6
  6948. if test "${smr_cv_with_Xp_includes+set}" = set; then
  6949.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6950. else
  6951.   smr_cv_with_Xp_includes=
  6952. fi
  6953. echo "$as_me:$LINENO: result: $smr_cv_with_Xp_includes" >&5
  6954. echo "${ECHO_T}$smr_cv_with_Xp_includes" >&6
  6955.  
  6956.   if test ! x"$smr_cv_with_Xp_includes" = x; then
  6957.     if test -d "$smr_cv_with_Xp_includes"; then
  6958.       Xp_CFLAGS="-I$smr_cv_with_Xp_includes"
  6959.     else
  6960.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  6961. echo "$as_me: error: argument must be a directory" >&2;}
  6962.    { (exit 1); exit 1; }; }
  6963.     fi
  6964.   else
  6965.     Xp_CFLAGS=
  6966.   fi
  6967.  
  6968.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  6969.   smr_save_CPPFLAGS="$CPPFLAGS"
  6970.   CPPFLAGS="$CPPFLAGS $Xp_CFLAGS $X_CFLAGS"
  6971.  
  6972.  
  6973. for ac_header in X11/extensions/Print.h
  6974. do
  6975. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6976. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6977.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  6978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6980.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6981. fi
  6982. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6983. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6984. else
  6985.   # Is the header compilable?
  6986. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6987. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6988. cat >conftest.$ac_ext <<_ACEOF
  6989. #line $LINENO "configure"
  6990. #include "confdefs.h"
  6991. $ac_includes_default
  6992. #include <$ac_header>
  6993. _ACEOF
  6994. rm -f conftest.$ac_objext
  6995. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6996.   (eval $ac_compile) 2>&5
  6997.   ac_status=$?
  6998.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6999.   (exit $ac_status); } &&
  7000.          { ac_try='test -s conftest.$ac_objext'
  7001.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7002.   (eval $ac_try) 2>&5
  7003.   ac_status=$?
  7004.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7005.   (exit $ac_status); }; }; then
  7006.   ac_header_compiler=yes
  7007. else
  7008.   echo "$as_me: failed program was:" >&5
  7009. cat conftest.$ac_ext >&5
  7010. ac_header_compiler=no
  7011. fi
  7012. rm -f conftest.$ac_objext conftest.$ac_ext
  7013. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7014. echo "${ECHO_T}$ac_header_compiler" >&6
  7015.  
  7016. # Is the header present?
  7017. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7018. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7019. cat >conftest.$ac_ext <<_ACEOF
  7020. #line $LINENO "configure"
  7021. #include "confdefs.h"
  7022. #include <$ac_header>
  7023. _ACEOF
  7024. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7025.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7026.   ac_status=$?
  7027.   egrep -v '^ *\+' conftest.er1 >conftest.err
  7028.   rm -f conftest.er1
  7029.   cat conftest.err >&5
  7030.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031.   (exit $ac_status); } >/dev/null; then
  7032.   if test -s conftest.err; then
  7033.     ac_cpp_err=$ac_c_preproc_warn_flag
  7034.   else
  7035.     ac_cpp_err=
  7036.   fi
  7037. else
  7038.   ac_cpp_err=yes
  7039. fi
  7040. if test -z "$ac_cpp_err"; then
  7041.   ac_header_preproc=yes
  7042. else
  7043.   echo "$as_me: failed program was:" >&5
  7044.   cat conftest.$ac_ext >&5
  7045.   ac_header_preproc=no
  7046. fi
  7047. rm -f conftest.err conftest.$ac_ext
  7048. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7049. echo "${ECHO_T}$ac_header_preproc" >&6
  7050.  
  7051. # So?  What about this header?
  7052. case $ac_header_compiler:$ac_header_preproc in
  7053.   yes:no )
  7054.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7055. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7056.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7057. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7058.   no:yes )
  7059.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7060. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7061.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7062. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7063.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7064. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7065. esac
  7066. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7067. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7068. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7069.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7070. else
  7071.   eval "$as_ac_Header=$ac_header_preproc"
  7072. fi
  7073. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7074. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7075.  
  7076. fi
  7077. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7078.   cat >>confdefs.h <<_ACEOF
  7079. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7080. _ACEOF
  7081.  smr_have_Xp_header=yes
  7082. else
  7083.   smr_have_Xp_header=no
  7084. fi
  7085.  
  7086. done
  7087.  
  7088.  
  7089.   if test x"$smr_test_CPPFLAGS" = xset; then
  7090.     CPPFLAGS=$smr_save_CPPFLAGS
  7091.   else
  7092.     unset CPPFLAGS
  7093.   fi
  7094.  
  7095.  
  7096.  
  7097.  
  7098.  
  7099.  
  7100.  
  7101.     # We need only look for the library if the header has been found
  7102.     # (or no header is needed).
  7103.     if test $smr_have_Xp_header != no; then
  7104.  
  7105.        echo "$as_me:$LINENO: checking for XpStartPage in -lXp" >&5
  7106. echo $ECHO_N "checking for XpStartPage in -lXp... $ECHO_C" >&6
  7107. if test "${ac_cv_lib_Xp_XpStartPage+set}" = set; then
  7108.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7109. else
  7110.   ac_check_lib_save_LIBS=$LIBS
  7111. LIBS="-lXp $Xp_CFLAGS $X_CFLAGS $Xp_LIBS $Xext_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  7112. cat >conftest.$ac_ext <<_ACEOF
  7113. #line $LINENO "configure"
  7114. #include "confdefs.h"
  7115.  
  7116. /* Override any gcc2 internal prototype to avoid an error.  */
  7117. #ifdef __cplusplus
  7118. extern "C"
  7119. #endif
  7120. /* We use char because int might match the return type of a gcc2
  7121.    builtin and then its argument prototype would still apply.  */
  7122. char XpStartPage ();
  7123. #ifdef F77_DUMMY_MAIN
  7124. #  ifdef __cplusplus
  7125.      extern "C"
  7126. #  endif
  7127.    int F77_DUMMY_MAIN() { return 1; }
  7128. #endif
  7129. int
  7130. main ()
  7131. {
  7132. XpStartPage ();
  7133.   ;
  7134.   return 0;
  7135. }
  7136. _ACEOF
  7137. rm -f conftest.$ac_objext conftest$ac_exeext
  7138. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7139.   (eval $ac_link) 2>&5
  7140.   ac_status=$?
  7141.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7142.   (exit $ac_status); } &&
  7143.          { ac_try='test -s conftest$ac_exeext'
  7144.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7145.   (eval $ac_try) 2>&5
  7146.   ac_status=$?
  7147.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148.   (exit $ac_status); }; }; then
  7149.   ac_cv_lib_Xp_XpStartPage=yes
  7150. else
  7151.   echo "$as_me: failed program was:" >&5
  7152. cat conftest.$ac_ext >&5
  7153. ac_cv_lib_Xp_XpStartPage=no
  7154. fi
  7155. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7156. LIBS=$ac_check_lib_save_LIBS
  7157. fi
  7158. echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpStartPage" >&5
  7159. echo "${ECHO_T}$ac_cv_lib_Xp_XpStartPage" >&6
  7160. if test $ac_cv_lib_Xp_XpStartPage = yes; then
  7161.   smr_have_Xp_library=yes
  7162. else
  7163.   smr_have_Xp_library=no
  7164. fi
  7165.  
  7166.     fi
  7167.  
  7168.     if test x"$smr_have_Xp_library" = xyes; then
  7169.       echo "$as_me:$LINENO: result: using Xp library" >&5
  7170. echo "${ECHO_T}using Xp library" >&6
  7171.     else
  7172.       Xp_LIBS=
  7173.       Xp_CFLAGS=
  7174.  
  7175.       if test x"$with_Xp" = xmaybe; then
  7176.         echo "$as_me:$LINENO: result: not using Xp library" >&5
  7177. echo "${ECHO_T}not using Xp library" >&6
  7178.       else
  7179.         { echo "$as_me:$LINENO: WARNING: requested Xp library not found!" >&5
  7180. echo "$as_me: WARNING: requested Xp library not found!" >&2;}
  7181.       fi
  7182.     fi
  7183.   fi
  7184.  
  7185.  
  7186.  
  7187.  
  7188.  
  7189.  
  7190.  
  7191.  
  7192.  
  7193.  
  7194.  
  7195.  
  7196.  
  7197.  
  7198.  
  7199.  
  7200.  
  7201.  
  7202.  
  7203.  
  7204.  
  7205.  
  7206.  
  7207.  
  7208.  
  7209.  
  7210.  
  7211.  
  7212.  
  7213.  
  7214.  
  7215. # Check whether --with-Xt-library or --without-Xt-library was given.
  7216. if test "${with_Xt_library+set}" = set; then
  7217.   withval="$with_Xt_library"
  7218.   smr_cv_with_Xt_library=$withval
  7219. fi;
  7220.  
  7221.       echo "$as_me:$LINENO: checking whether to use Xt library" >&5
  7222. echo $ECHO_N "checking whether to use Xt library... $ECHO_C" >&6
  7223. if test "${smr_cv_with_Xt_library+set}" = set; then
  7224.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7225. else
  7226.   smr_cv_with_Xt_library=maybe
  7227. fi
  7228. echo "$as_me:$LINENO: result: $smr_cv_with_Xt_library" >&5
  7229. echo "${ECHO_T}$smr_cv_with_Xt_library" >&6
  7230.  
  7231.  
  7232.   case x"$smr_cv_with_Xt_library" in
  7233.       xyes | xmaybe)
  7234.           Xt_LIBS="-lXt"
  7235.           with_Xt=$smr_cv_with_Xt_library
  7236.           ;;
  7237.       xno)
  7238.           Xt_LIBS=
  7239.           with_Xt=no
  7240.           ;;
  7241.       *)
  7242.           if test -f "$smr_cv_with_Xt_library"; then
  7243.             Xt_LIBS=$smr_cv_with_Xt_library
  7244.           elif test -d "$smr_cv_with_Xt_library"; then
  7245.             Xt_LIBS="-L$smr_cv_with_Xt_library -lXt"
  7246.           else
  7247.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  7248. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  7249.    { (exit 1); exit 1; }; }
  7250.           fi
  7251.           with_Xt=yes
  7252.           ;;
  7253.   esac
  7254.  
  7255.  
  7256.  
  7257.  
  7258.  
  7259.  
  7260.  
  7261.   if test ! x"$with_Xt" = xno; then
  7262.  
  7263.     # If we got this far, then the user didn't explicitly ask not to use
  7264.     # the library.
  7265.  
  7266.  
  7267.  
  7268.  
  7269.  
  7270.  
  7271.  
  7272.  
  7273. # Check whether --with-Xt-includes or --without-Xt-includes was given.
  7274. if test "${with_Xt_includes+set}" = set; then
  7275.   withval="$with_Xt_includes"
  7276.   smr_cv_with_Xt_includes=$withval
  7277. fi;
  7278.  
  7279.       echo "$as_me:$LINENO: checking where to find the Xt header files" >&5
  7280. echo $ECHO_N "checking where to find the Xt header files... $ECHO_C" >&6
  7281. if test "${smr_cv_with_Xt_includes+set}" = set; then
  7282.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7283. else
  7284.   smr_cv_with_Xt_includes=
  7285. fi
  7286. echo "$as_me:$LINENO: result: $smr_cv_with_Xt_includes" >&5
  7287. echo "${ECHO_T}$smr_cv_with_Xt_includes" >&6
  7288.  
  7289.   if test ! x"$smr_cv_with_Xt_includes" = x; then
  7290.     if test -d "$smr_cv_with_Xt_includes"; then
  7291.       Xt_CFLAGS="-I$smr_cv_with_Xt_includes"
  7292.     else
  7293.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  7294. echo "$as_me: error: argument must be a directory" >&2;}
  7295.    { (exit 1); exit 1; }; }
  7296.     fi
  7297.   else
  7298.     Xt_CFLAGS=
  7299.   fi
  7300.  
  7301.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  7302.   smr_save_CPPFLAGS="$CPPFLAGS"
  7303.   CPPFLAGS="$CPPFLAGS $Xt_CFLAGS $X_CFLAGS"
  7304.  
  7305.  
  7306. for ac_header in X11/Intrinsic.h
  7307. do
  7308. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7309. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7310.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  7311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7312. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7313.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7314. fi
  7315. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7316. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7317. else
  7318.   # Is the header compilable?
  7319. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7320. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7321. cat >conftest.$ac_ext <<_ACEOF
  7322. #line $LINENO "configure"
  7323. #include "confdefs.h"
  7324. $ac_includes_default
  7325. #include <$ac_header>
  7326. _ACEOF
  7327. rm -f conftest.$ac_objext
  7328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7329.   (eval $ac_compile) 2>&5
  7330.   ac_status=$?
  7331.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332.   (exit $ac_status); } &&
  7333.          { ac_try='test -s conftest.$ac_objext'
  7334.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335.   (eval $ac_try) 2>&5
  7336.   ac_status=$?
  7337.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338.   (exit $ac_status); }; }; then
  7339.   ac_header_compiler=yes
  7340. else
  7341.   echo "$as_me: failed program was:" >&5
  7342. cat conftest.$ac_ext >&5
  7343. ac_header_compiler=no
  7344. fi
  7345. rm -f conftest.$ac_objext conftest.$ac_ext
  7346. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7347. echo "${ECHO_T}$ac_header_compiler" >&6
  7348.  
  7349. # Is the header present?
  7350. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7351. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7352. cat >conftest.$ac_ext <<_ACEOF
  7353. #line $LINENO "configure"
  7354. #include "confdefs.h"
  7355. #include <$ac_header>
  7356. _ACEOF
  7357. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7358.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7359.   ac_status=$?
  7360.   egrep -v '^ *\+' conftest.er1 >conftest.err
  7361.   rm -f conftest.er1
  7362.   cat conftest.err >&5
  7363.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364.   (exit $ac_status); } >/dev/null; then
  7365.   if test -s conftest.err; then
  7366.     ac_cpp_err=$ac_c_preproc_warn_flag
  7367.   else
  7368.     ac_cpp_err=
  7369.   fi
  7370. else
  7371.   ac_cpp_err=yes
  7372. fi
  7373. if test -z "$ac_cpp_err"; then
  7374.   ac_header_preproc=yes
  7375. else
  7376.   echo "$as_me: failed program was:" >&5
  7377.   cat conftest.$ac_ext >&5
  7378.   ac_header_preproc=no
  7379. fi
  7380. rm -f conftest.err conftest.$ac_ext
  7381. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7382. echo "${ECHO_T}$ac_header_preproc" >&6
  7383.  
  7384. # So?  What about this header?
  7385. case $ac_header_compiler:$ac_header_preproc in
  7386.   yes:no )
  7387.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7388. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7389.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7390. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7391.   no:yes )
  7392.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7393. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7394.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7395. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7396.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7397. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7398. esac
  7399. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7401. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7402.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7403. else
  7404.   eval "$as_ac_Header=$ac_header_preproc"
  7405. fi
  7406. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7407. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7408.  
  7409. fi
  7410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7411.   cat >>confdefs.h <<_ACEOF
  7412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7413. _ACEOF
  7414.  smr_have_Xt_header=yes
  7415. else
  7416.   smr_have_Xt_header=no
  7417. fi
  7418.  
  7419. done
  7420.  
  7421.  
  7422.   if test x"$smr_test_CPPFLAGS" = xset; then
  7423.     CPPFLAGS=$smr_save_CPPFLAGS
  7424.   else
  7425.     unset CPPFLAGS
  7426.   fi
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.  
  7433.  
  7434.     # We need only look for the library if the header has been found
  7435.     # (or no header is needed).
  7436.     if test $smr_have_Xt_header != no; then
  7437.  
  7438.        echo "$as_me:$LINENO: checking for XtAppInitialize in -lXt" >&5
  7439. echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
  7440. if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
  7441.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7442. else
  7443.   ac_check_lib_save_LIBS=$LIBS
  7444. LIBS="-lXt $Xt_CFLAGS $X_CFLAGS $Xt_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  7445. cat >conftest.$ac_ext <<_ACEOF
  7446. #line $LINENO "configure"
  7447. #include "confdefs.h"
  7448.  
  7449. /* Override any gcc2 internal prototype to avoid an error.  */
  7450. #ifdef __cplusplus
  7451. extern "C"
  7452. #endif
  7453. /* We use char because int might match the return type of a gcc2
  7454.    builtin and then its argument prototype would still apply.  */
  7455. char XtAppInitialize ();
  7456. #ifdef F77_DUMMY_MAIN
  7457. #  ifdef __cplusplus
  7458.      extern "C"
  7459. #  endif
  7460.    int F77_DUMMY_MAIN() { return 1; }
  7461. #endif
  7462. int
  7463. main ()
  7464. {
  7465. XtAppInitialize ();
  7466.   ;
  7467.   return 0;
  7468. }
  7469. _ACEOF
  7470. rm -f conftest.$ac_objext conftest$ac_exeext
  7471. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7472.   (eval $ac_link) 2>&5
  7473.   ac_status=$?
  7474.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7475.   (exit $ac_status); } &&
  7476.          { ac_try='test -s conftest$ac_exeext'
  7477.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7478.   (eval $ac_try) 2>&5
  7479.   ac_status=$?
  7480.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481.   (exit $ac_status); }; }; then
  7482.   ac_cv_lib_Xt_XtAppInitialize=yes
  7483. else
  7484.   echo "$as_me: failed program was:" >&5
  7485. cat conftest.$ac_ext >&5
  7486. ac_cv_lib_Xt_XtAppInitialize=no
  7487. fi
  7488. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7489. LIBS=$ac_check_lib_save_LIBS
  7490. fi
  7491. echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
  7492. echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
  7493. if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
  7494.   smr_have_Xt_library=yes
  7495. else
  7496.   smr_have_Xt_library=no
  7497. fi
  7498.  
  7499.     fi
  7500.  
  7501.     if test x"$smr_have_Xt_library" = xyes; then
  7502.       echo "$as_me:$LINENO: result: using Xt library" >&5
  7503. echo "${ECHO_T}using Xt library" >&6
  7504.     else
  7505.       Xt_LIBS=
  7506.       Xt_CFLAGS=
  7507.  
  7508.       if test x"$with_Xt" = xmaybe; then
  7509.         echo "$as_me:$LINENO: result: not using Xt library" >&5
  7510. echo "${ECHO_T}not using Xt library" >&6
  7511.       else
  7512.         { echo "$as_me:$LINENO: WARNING: requested Xt library not found!" >&5
  7513. echo "$as_me: WARNING: requested Xt library not found!" >&2;}
  7514.       fi
  7515.     fi
  7516.   fi
  7517.  
  7518.  
  7519.  
  7520.  
  7521.  
  7522.  
  7523.  
  7524.  
  7525.  
  7526.  
  7527.  
  7528.  
  7529.  
  7530.  
  7531.  
  7532.  
  7533.  
  7534.  
  7535.  
  7536.  
  7537.  
  7538.  
  7539.  
  7540.  
  7541.  
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548. # Check whether --with-Xm-library or --without-Xm-library was given.
  7549. if test "${with_Xm_library+set}" = set; then
  7550.   withval="$with_Xm_library"
  7551.   smr_cv_with_Xm_library=$withval
  7552. fi;
  7553.  
  7554.       echo "$as_me:$LINENO: checking whether to use Xm library" >&5
  7555. echo $ECHO_N "checking whether to use Xm library... $ECHO_C" >&6
  7556. if test "${smr_cv_with_Xm_library+set}" = set; then
  7557.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7558. else
  7559.   smr_cv_with_Xm_library=maybe
  7560. fi
  7561. echo "$as_me:$LINENO: result: $smr_cv_with_Xm_library" >&5
  7562. echo "${ECHO_T}$smr_cv_with_Xm_library" >&6
  7563.  
  7564.  
  7565.   case x"$smr_cv_with_Xm_library" in
  7566.       xyes | xmaybe)
  7567.           Xm_LIBS="-lXm"
  7568.           with_Xm=$smr_cv_with_Xm_library
  7569.           ;;
  7570.       xno)
  7571.           Xm_LIBS=
  7572.           with_Xm=no
  7573.           ;;
  7574.       *)
  7575.           if test -f "$smr_cv_with_Xm_library"; then
  7576.             Xm_LIBS=$smr_cv_with_Xm_library
  7577.           elif test -d "$smr_cv_with_Xm_library"; then
  7578.             Xm_LIBS="-L$smr_cv_with_Xm_library -lXm"
  7579.           else
  7580.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  7581. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  7582.    { (exit 1); exit 1; }; }
  7583.           fi
  7584.           with_Xm=yes
  7585.           ;;
  7586.   esac
  7587.  
  7588.  
  7589.  
  7590.  
  7591.  
  7592.  
  7593.  
  7594.   if test ! x"$with_Xm" = xno; then
  7595.  
  7596.     # If we got this far, then the user didn't explicitly ask not to use
  7597.     # the library.
  7598.  
  7599.  
  7600.  
  7601.  
  7602.  
  7603.  
  7604.  
  7605.  
  7606. # Check whether --with-Xm-includes or --without-Xm-includes was given.
  7607. if test "${with_Xm_includes+set}" = set; then
  7608.   withval="$with_Xm_includes"
  7609.   smr_cv_with_Xm_includes=$withval
  7610. fi;
  7611.  
  7612.       echo "$as_me:$LINENO: checking where to find the Xm header files" >&5
  7613. echo $ECHO_N "checking where to find the Xm header files... $ECHO_C" >&6
  7614. if test "${smr_cv_with_Xm_includes+set}" = set; then
  7615.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7616. else
  7617.   smr_cv_with_Xm_includes=
  7618. fi
  7619. echo "$as_me:$LINENO: result: $smr_cv_with_Xm_includes" >&5
  7620. echo "${ECHO_T}$smr_cv_with_Xm_includes" >&6
  7621.  
  7622.   if test ! x"$smr_cv_with_Xm_includes" = x; then
  7623.     if test -d "$smr_cv_with_Xm_includes"; then
  7624.       Xm_CFLAGS="-I$smr_cv_with_Xm_includes"
  7625.     else
  7626.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  7627. echo "$as_me: error: argument must be a directory" >&2;}
  7628.    { (exit 1); exit 1; }; }
  7629.     fi
  7630.   else
  7631.     Xm_CFLAGS=
  7632.   fi
  7633.  
  7634.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  7635.   smr_save_CPPFLAGS="$CPPFLAGS"
  7636.   CPPFLAGS="$CPPFLAGS $Xm_CFLAGS $X_CFLAGS"
  7637.  
  7638.  
  7639. for ac_header in Xm/XmAll.h
  7640. do
  7641. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7642. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7643.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  7644. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7645. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7646.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7647. fi
  7648. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7649. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7650. else
  7651.   # Is the header compilable?
  7652. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7653. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7654. cat >conftest.$ac_ext <<_ACEOF
  7655. #line $LINENO "configure"
  7656. #include "confdefs.h"
  7657. $ac_includes_default
  7658. #include <$ac_header>
  7659. _ACEOF
  7660. rm -f conftest.$ac_objext
  7661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7662.   (eval $ac_compile) 2>&5
  7663.   ac_status=$?
  7664.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665.   (exit $ac_status); } &&
  7666.          { ac_try='test -s conftest.$ac_objext'
  7667.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7668.   (eval $ac_try) 2>&5
  7669.   ac_status=$?
  7670.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671.   (exit $ac_status); }; }; then
  7672.   ac_header_compiler=yes
  7673. else
  7674.   echo "$as_me: failed program was:" >&5
  7675. cat conftest.$ac_ext >&5
  7676. ac_header_compiler=no
  7677. fi
  7678. rm -f conftest.$ac_objext conftest.$ac_ext
  7679. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7680. echo "${ECHO_T}$ac_header_compiler" >&6
  7681.  
  7682. # Is the header present?
  7683. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7684. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7685. cat >conftest.$ac_ext <<_ACEOF
  7686. #line $LINENO "configure"
  7687. #include "confdefs.h"
  7688. #include <$ac_header>
  7689. _ACEOF
  7690. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7691.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7692.   ac_status=$?
  7693.   egrep -v '^ *\+' conftest.er1 >conftest.err
  7694.   rm -f conftest.er1
  7695.   cat conftest.err >&5
  7696.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697.   (exit $ac_status); } >/dev/null; then
  7698.   if test -s conftest.err; then
  7699.     ac_cpp_err=$ac_c_preproc_warn_flag
  7700.   else
  7701.     ac_cpp_err=
  7702.   fi
  7703. else
  7704.   ac_cpp_err=yes
  7705. fi
  7706. if test -z "$ac_cpp_err"; then
  7707.   ac_header_preproc=yes
  7708. else
  7709.   echo "$as_me: failed program was:" >&5
  7710.   cat conftest.$ac_ext >&5
  7711.   ac_header_preproc=no
  7712. fi
  7713. rm -f conftest.err conftest.$ac_ext
  7714. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7715. echo "${ECHO_T}$ac_header_preproc" >&6
  7716.  
  7717. # So?  What about this header?
  7718. case $ac_header_compiler:$ac_header_preproc in
  7719.   yes:no )
  7720.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7721. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7722.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7723. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7724.   no:yes )
  7725.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7726. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7727.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7728. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7729.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7730. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7731. esac
  7732. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7733. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7734. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7735.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7736. else
  7737.   eval "$as_ac_Header=$ac_header_preproc"
  7738. fi
  7739. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7740. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7741.  
  7742. fi
  7743. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7744.   cat >>confdefs.h <<_ACEOF
  7745. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7746. _ACEOF
  7747.  smr_have_Xm_header=yes
  7748. else
  7749.   smr_have_Xm_header=no
  7750. fi
  7751.  
  7752. done
  7753.  
  7754.  
  7755.   if test x"$smr_test_CPPFLAGS" = xset; then
  7756.     CPPFLAGS=$smr_save_CPPFLAGS
  7757.   else
  7758.     unset CPPFLAGS
  7759.   fi
  7760.  
  7761.  
  7762.  
  7763.  
  7764.  
  7765.  
  7766.  
  7767.     # We need only look for the library if the header has been found
  7768.     # (or no header is needed).
  7769.     if test $smr_have_Xm_header != no; then
  7770.  
  7771.        echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
  7772. echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
  7773. if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
  7774.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776.   ac_check_lib_save_LIBS=$LIBS
  7777. LIBS="-lXm $Xm_CFLAGS $X_CFLAGS $Xm_LIBS $Xt_LIBS $Xp_LIBS $Xext_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  7778. cat >conftest.$ac_ext <<_ACEOF
  7779. #line $LINENO "configure"
  7780. #include "confdefs.h"
  7781.  
  7782. /* Override any gcc2 internal prototype to avoid an error.  */
  7783. #ifdef __cplusplus
  7784. extern "C"
  7785. #endif
  7786. /* We use char because int might match the return type of a gcc2
  7787.    builtin and then its argument prototype would still apply.  */
  7788. char XmCreateForm ();
  7789. #ifdef F77_DUMMY_MAIN
  7790. #  ifdef __cplusplus
  7791.      extern "C"
  7792. #  endif
  7793.    int F77_DUMMY_MAIN() { return 1; }
  7794. #endif
  7795. int
  7796. main ()
  7797. {
  7798. XmCreateForm ();
  7799.   ;
  7800.   return 0;
  7801. }
  7802. _ACEOF
  7803. rm -f conftest.$ac_objext conftest$ac_exeext
  7804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7805.   (eval $ac_link) 2>&5
  7806.   ac_status=$?
  7807.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808.   (exit $ac_status); } &&
  7809.          { ac_try='test -s conftest$ac_exeext'
  7810.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7811.   (eval $ac_try) 2>&5
  7812.   ac_status=$?
  7813.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7814.   (exit $ac_status); }; }; then
  7815.   ac_cv_lib_Xm_XmCreateForm=yes
  7816. else
  7817.   echo "$as_me: failed program was:" >&5
  7818. cat conftest.$ac_ext >&5
  7819. ac_cv_lib_Xm_XmCreateForm=no
  7820. fi
  7821. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7822. LIBS=$ac_check_lib_save_LIBS
  7823. fi
  7824. echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
  7825. echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
  7826. if test $ac_cv_lib_Xm_XmCreateForm = yes; then
  7827.   smr_have_Xm_library=yes
  7828. else
  7829.   smr_have_Xm_library=no
  7830. fi
  7831.  
  7832.     fi
  7833.  
  7834.     if test x"$smr_have_Xm_library" = xyes; then
  7835.       echo "$as_me:$LINENO: result: using Xm library" >&5
  7836. echo "${ECHO_T}using Xm library" >&6
  7837.     else
  7838.       Xm_LIBS=
  7839.       Xm_CFLAGS=
  7840.  
  7841.       if test x"$with_Xm" = xmaybe; then
  7842.         echo "$as_me:$LINENO: result: not using Xm library" >&5
  7843. echo "${ECHO_T}not using Xm library" >&6
  7844.       else
  7845.         { echo "$as_me:$LINENO: WARNING: requested Xm library not found!" >&5
  7846. echo "$as_me: WARNING: requested Xm library not found!" >&2;}
  7847.       fi
  7848.     fi
  7849.   fi
  7850.  
  7851.  
  7852.  
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858.  
  7859.  
  7860.  
  7861.  
  7862.  
  7863.   if test ! "x$smr_have_Xm_library" = xyes; then
  7864.     no_x="yes"
  7865.   fi
  7866. fi
  7867.  
  7868. if test -z "$no_x"; then
  7869.  
  7870.  
  7871.  
  7872.  
  7873.  
  7874.  
  7875.  
  7876.  
  7877.  
  7878.  
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884.  
  7885.  
  7886.  
  7887. # Check whether --with-t1-library or --without-t1-library was given.
  7888. if test "${with_t1_library+set}" = set; then
  7889.   withval="$with_t1_library"
  7890.   smr_cv_with_t1_library=$withval
  7891. fi;
  7892.  
  7893.       echo "$as_me:$LINENO: checking whether to use t1 library" >&5
  7894. echo $ECHO_N "checking whether to use t1 library... $ECHO_C" >&6
  7895. if test "${smr_cv_with_t1_library+set}" = set; then
  7896.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7897. else
  7898.   smr_cv_with_t1_library=maybe
  7899. fi
  7900. echo "$as_me:$LINENO: result: $smr_cv_with_t1_library" >&5
  7901. echo "${ECHO_T}$smr_cv_with_t1_library" >&6
  7902.  
  7903.  
  7904.   case x"$smr_cv_with_t1_library" in
  7905.       xyes | xmaybe)
  7906.           t1_LIBS="-lt1"
  7907.           with_t1=$smr_cv_with_t1_library
  7908.           ;;
  7909.       xno)
  7910.           t1_LIBS=
  7911.           with_t1=no
  7912.           ;;
  7913.       *)
  7914.           if test -f "$smr_cv_with_t1_library"; then
  7915.             t1_LIBS=$smr_cv_with_t1_library
  7916.           elif test -d "$smr_cv_with_t1_library"; then
  7917.             t1_LIBS="-L$smr_cv_with_t1_library -lt1"
  7918.           else
  7919.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  7920. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  7921.    { (exit 1); exit 1; }; }
  7922.           fi
  7923.           with_t1=yes
  7924.           ;;
  7925.   esac
  7926.  
  7927.  
  7928.  
  7929.  
  7930.  
  7931.  
  7932.  
  7933.   if test ! x"$with_t1" = xno; then
  7934.  
  7935.     # If we got this far, then the user didn't explicitly ask not to use
  7936.     # the library.
  7937.  
  7938.  
  7939.  
  7940.  
  7941.  
  7942.  
  7943.  
  7944.  
  7945. # Check whether --with-t1-includes or --without-t1-includes was given.
  7946. if test "${with_t1_includes+set}" = set; then
  7947.   withval="$with_t1_includes"
  7948.   smr_cv_with_t1_includes=$withval
  7949. fi;
  7950.  
  7951.       echo "$as_me:$LINENO: checking where to find the t1 header files" >&5
  7952. echo $ECHO_N "checking where to find the t1 header files... $ECHO_C" >&6
  7953. if test "${smr_cv_with_t1_includes+set}" = set; then
  7954.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7955. else
  7956.   smr_cv_with_t1_includes=
  7957. fi
  7958. echo "$as_me:$LINENO: result: $smr_cv_with_t1_includes" >&5
  7959. echo "${ECHO_T}$smr_cv_with_t1_includes" >&6
  7960.  
  7961.   if test ! x"$smr_cv_with_t1_includes" = x; then
  7962.     if test -d "$smr_cv_with_t1_includes"; then
  7963.       t1_CFLAGS="-I$smr_cv_with_t1_includes"
  7964.     else
  7965.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  7966. echo "$as_me: error: argument must be a directory" >&2;}
  7967.    { (exit 1); exit 1; }; }
  7968.     fi
  7969.   else
  7970.     t1_CFLAGS=
  7971.   fi
  7972.  
  7973.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  7974.   smr_save_CPPFLAGS="$CPPFLAGS"
  7975.   CPPFLAGS="$CPPFLAGS $t1_CFLAGS $X_CFLAGS"
  7976.  
  7977.  
  7978. for ac_header in t1lib.h
  7979. do
  7980. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7981. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7982.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  7983. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7984. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7985.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7986. fi
  7987. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7988. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7989. else
  7990.   # Is the header compilable?
  7991. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7992. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7993. cat >conftest.$ac_ext <<_ACEOF
  7994. #line $LINENO "configure"
  7995. #include "confdefs.h"
  7996. $ac_includes_default
  7997. #include <$ac_header>
  7998. _ACEOF
  7999. rm -f conftest.$ac_objext
  8000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8001.   (eval $ac_compile) 2>&5
  8002.   ac_status=$?
  8003.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004.   (exit $ac_status); } &&
  8005.          { ac_try='test -s conftest.$ac_objext'
  8006.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8007.   (eval $ac_try) 2>&5
  8008.   ac_status=$?
  8009.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010.   (exit $ac_status); }; }; then
  8011.   ac_header_compiler=yes
  8012. else
  8013.   echo "$as_me: failed program was:" >&5
  8014. cat conftest.$ac_ext >&5
  8015. ac_header_compiler=no
  8016. fi
  8017. rm -f conftest.$ac_objext conftest.$ac_ext
  8018. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8019. echo "${ECHO_T}$ac_header_compiler" >&6
  8020.  
  8021. # Is the header present?
  8022. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8023. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8024. cat >conftest.$ac_ext <<_ACEOF
  8025. #line $LINENO "configure"
  8026. #include "confdefs.h"
  8027. #include <$ac_header>
  8028. _ACEOF
  8029. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8030.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8031.   ac_status=$?
  8032.   egrep -v '^ *\+' conftest.er1 >conftest.err
  8033.   rm -f conftest.er1
  8034.   cat conftest.err >&5
  8035.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036.   (exit $ac_status); } >/dev/null; then
  8037.   if test -s conftest.err; then
  8038.     ac_cpp_err=$ac_c_preproc_warn_flag
  8039.   else
  8040.     ac_cpp_err=
  8041.   fi
  8042. else
  8043.   ac_cpp_err=yes
  8044. fi
  8045. if test -z "$ac_cpp_err"; then
  8046.   ac_header_preproc=yes
  8047. else
  8048.   echo "$as_me: failed program was:" >&5
  8049.   cat conftest.$ac_ext >&5
  8050.   ac_header_preproc=no
  8051. fi
  8052. rm -f conftest.err conftest.$ac_ext
  8053. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8054. echo "${ECHO_T}$ac_header_preproc" >&6
  8055.  
  8056. # So?  What about this header?
  8057. case $ac_header_compiler:$ac_header_preproc in
  8058.   yes:no )
  8059.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8060. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8061.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8062. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8063.   no:yes )
  8064.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8065. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8066.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8067. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8068.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8069. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8070. esac
  8071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8074.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8075. else
  8076.   eval "$as_ac_Header=$ac_header_preproc"
  8077. fi
  8078. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8079. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8080.  
  8081. fi
  8082. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8083.   cat >>confdefs.h <<_ACEOF
  8084. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8085. _ACEOF
  8086.  smr_have_t1_header=yes
  8087. else
  8088.   smr_have_t1_header=no
  8089. fi
  8090.  
  8091. done
  8092.  
  8093.  
  8094.   if test x"$smr_test_CPPFLAGS" = xset; then
  8095.     CPPFLAGS=$smr_save_CPPFLAGS
  8096.   else
  8097.     unset CPPFLAGS
  8098.   fi
  8099.  
  8100.  
  8101.  
  8102.  
  8103.  
  8104.  
  8105.  
  8106.     # We need only look for the library if the header has been found
  8107.     # (or no header is needed).
  8108.     if test $smr_have_t1_header != no; then
  8109.  
  8110.        echo "$as_me:$LINENO: checking for T1_InitLib in -lt1" >&5
  8111. echo $ECHO_N "checking for T1_InitLib in -lt1... $ECHO_C" >&6
  8112. if test "${ac_cv_lib_t1_T1_InitLib+set}" = set; then
  8113.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8114. else
  8115.   ac_check_lib_save_LIBS=$LIBS
  8116. LIBS="-lt1 $t1_CFLAGS $X_CFLAGS $t1_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $LIBS"
  8117. cat >conftest.$ac_ext <<_ACEOF
  8118. #line $LINENO "configure"
  8119. #include "confdefs.h"
  8120.  
  8121. /* Override any gcc2 internal prototype to avoid an error.  */
  8122. #ifdef __cplusplus
  8123. extern "C"
  8124. #endif
  8125. /* We use char because int might match the return type of a gcc2
  8126.    builtin and then its argument prototype would still apply.  */
  8127. char T1_InitLib ();
  8128. #ifdef F77_DUMMY_MAIN
  8129. #  ifdef __cplusplus
  8130.      extern "C"
  8131. #  endif
  8132.    int F77_DUMMY_MAIN() { return 1; }
  8133. #endif
  8134. int
  8135. main ()
  8136. {
  8137. T1_InitLib ();
  8138.   ;
  8139.   return 0;
  8140. }
  8141. _ACEOF
  8142. rm -f conftest.$ac_objext conftest$ac_exeext
  8143. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8144.   (eval $ac_link) 2>&5
  8145.   ac_status=$?
  8146.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8147.   (exit $ac_status); } &&
  8148.          { ac_try='test -s conftest$ac_exeext'
  8149.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8150.   (eval $ac_try) 2>&5
  8151.   ac_status=$?
  8152.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153.   (exit $ac_status); }; }; then
  8154.   ac_cv_lib_t1_T1_InitLib=yes
  8155. else
  8156.   echo "$as_me: failed program was:" >&5
  8157. cat conftest.$ac_ext >&5
  8158. ac_cv_lib_t1_T1_InitLib=no
  8159. fi
  8160. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8161. LIBS=$ac_check_lib_save_LIBS
  8162. fi
  8163. echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_InitLib" >&5
  8164. echo "${ECHO_T}$ac_cv_lib_t1_T1_InitLib" >&6
  8165. if test $ac_cv_lib_t1_T1_InitLib = yes; then
  8166.   smr_have_t1_library=yes
  8167. else
  8168.   smr_have_t1_library=no
  8169. fi
  8170.  
  8171.     fi
  8172.  
  8173.     if test x"$smr_have_t1_library" = xyes; then
  8174.       echo "$as_me:$LINENO: result: using t1 library" >&5
  8175. echo "${ECHO_T}using t1 library" >&6
  8176.     else
  8177.       t1_LIBS=
  8178.       t1_CFLAGS=
  8179.  
  8180.       if test x"$with_t1" = xmaybe; then
  8181.         echo "$as_me:$LINENO: result: not using t1 library" >&5
  8182. echo "${ECHO_T}not using t1 library" >&6
  8183.       else
  8184.         { echo "$as_me:$LINENO: WARNING: requested t1 library not found!" >&5
  8185. echo "$as_me: WARNING: requested t1 library not found!" >&2;}
  8186.       fi
  8187.     fi
  8188.   fi
  8189.  
  8190.  
  8191.  
  8192.  
  8193.  
  8194.  
  8195.  
  8196.  
  8197.  
  8198.  
  8199.  
  8200.  
  8201.  
  8202. fi
  8203.  
  8204. if test -z "$no_x"; then
  8205.  
  8206.  
  8207.  
  8208.  
  8209.  
  8210.  
  8211.  
  8212.  
  8213.  
  8214.  
  8215.  
  8216.  
  8217.  
  8218.  
  8219.  
  8220.  
  8221.  
  8222.  
  8223. # Check whether --with-freetype2-library or --without-freetype2-library was given.
  8224. if test "${with_freetype2_library+set}" = set; then
  8225.   withval="$with_freetype2_library"
  8226.   smr_cv_with_freetype2_library=$withval
  8227. fi;
  8228.  
  8229.       echo "$as_me:$LINENO: checking whether to use freetype2 library" >&5
  8230. echo $ECHO_N "checking whether to use freetype2 library... $ECHO_C" >&6
  8231. if test "${smr_cv_with_freetype2_library+set}" = set; then
  8232.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8233. else
  8234.   smr_cv_with_freetype2_library=maybe
  8235. fi
  8236. echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_library" >&5
  8237. echo "${ECHO_T}$smr_cv_with_freetype2_library" >&6
  8238.  
  8239.  
  8240.   case x"$smr_cv_with_freetype2_library" in
  8241.       xyes | xmaybe)
  8242.           freetype2_LIBS="-lfreetype"
  8243.           with_freetype2=$smr_cv_with_freetype2_library
  8244.           ;;
  8245.       xno)
  8246.           freetype2_LIBS=
  8247.           with_freetype2=no
  8248.           ;;
  8249.       *)
  8250.           if test -f "$smr_cv_with_freetype2_library"; then
  8251.             freetype2_LIBS=$smr_cv_with_freetype2_library
  8252.           elif test -d "$smr_cv_with_freetype2_library"; then
  8253.             freetype2_LIBS="-L$smr_cv_with_freetype2_library -lfreetype"
  8254.           else
  8255.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  8256. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  8257.    { (exit 1); exit 1; }; }
  8258.           fi
  8259.           with_freetype2=yes
  8260.           ;;
  8261.   esac
  8262.  
  8263.  
  8264.  
  8265.  
  8266.  
  8267.  
  8268.  
  8269.   if test ! x"$with_freetype2" = xno; then
  8270.  
  8271.     # If we got this far, then the user didn't explicitly ask not to use
  8272.     # the library.
  8273.  
  8274.  
  8275.  
  8276.  
  8277.  
  8278.  
  8279.  
  8280.  
  8281. # Check whether --with-freetype2-includes or --without-freetype2-includes was given.
  8282. if test "${with_freetype2_includes+set}" = set; then
  8283.   withval="$with_freetype2_includes"
  8284.   smr_cv_with_freetype2_includes=$withval
  8285. fi;
  8286.  
  8287.       echo "$as_me:$LINENO: checking where to find the freetype2 header files" >&5
  8288. echo $ECHO_N "checking where to find the freetype2 header files... $ECHO_C" >&6
  8289. if test "${smr_cv_with_freetype2_includes+set}" = set; then
  8290.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8291. else
  8292.   smr_cv_with_freetype2_includes=
  8293. fi
  8294. echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_includes" >&5
  8295. echo "${ECHO_T}$smr_cv_with_freetype2_includes" >&6
  8296.  
  8297.   if test ! x"$smr_cv_with_freetype2_includes" = x; then
  8298.     if test -d "$smr_cv_with_freetype2_includes"; then
  8299.       freetype2_CFLAGS="-I$smr_cv_with_freetype2_includes"
  8300.     else
  8301.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  8302. echo "$as_me: error: argument must be a directory" >&2;}
  8303.    { (exit 1); exit 1; }; }
  8304.     fi
  8305.   else
  8306.     freetype2_CFLAGS=
  8307.   fi
  8308.  
  8309.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  8310.   smr_save_CPPFLAGS="$CPPFLAGS"
  8311.   CPPFLAGS="$CPPFLAGS $freetype2_CFLAGS $X_CFLAGS"
  8312.  
  8313.  
  8314. for ac_header in freetype/freetype.h
  8315. do
  8316. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8318.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  8319. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8320. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8321.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8322. fi
  8323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8325. else
  8326.   # Is the header compilable?
  8327. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8328. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8329. cat >conftest.$ac_ext <<_ACEOF
  8330. #line $LINENO "configure"
  8331. #include "confdefs.h"
  8332. $ac_includes_default
  8333. #include <$ac_header>
  8334. _ACEOF
  8335. rm -f conftest.$ac_objext
  8336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8337.   (eval $ac_compile) 2>&5
  8338.   ac_status=$?
  8339.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340.   (exit $ac_status); } &&
  8341.          { ac_try='test -s conftest.$ac_objext'
  8342.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8343.   (eval $ac_try) 2>&5
  8344.   ac_status=$?
  8345.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8346.   (exit $ac_status); }; }; then
  8347.   ac_header_compiler=yes
  8348. else
  8349.   echo "$as_me: failed program was:" >&5
  8350. cat conftest.$ac_ext >&5
  8351. ac_header_compiler=no
  8352. fi
  8353. rm -f conftest.$ac_objext conftest.$ac_ext
  8354. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8355. echo "${ECHO_T}$ac_header_compiler" >&6
  8356.  
  8357. # Is the header present?
  8358. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8359. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8360. cat >conftest.$ac_ext <<_ACEOF
  8361. #line $LINENO "configure"
  8362. #include "confdefs.h"
  8363. #include <$ac_header>
  8364. _ACEOF
  8365. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8366.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8367.   ac_status=$?
  8368.   egrep -v '^ *\+' conftest.er1 >conftest.err
  8369.   rm -f conftest.er1
  8370.   cat conftest.err >&5
  8371.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372.   (exit $ac_status); } >/dev/null; then
  8373.   if test -s conftest.err; then
  8374.     ac_cpp_err=$ac_c_preproc_warn_flag
  8375.   else
  8376.     ac_cpp_err=
  8377.   fi
  8378. else
  8379.   ac_cpp_err=yes
  8380. fi
  8381. if test -z "$ac_cpp_err"; then
  8382.   ac_header_preproc=yes
  8383. else
  8384.   echo "$as_me: failed program was:" >&5
  8385.   cat conftest.$ac_ext >&5
  8386.   ac_header_preproc=no
  8387. fi
  8388. rm -f conftest.err conftest.$ac_ext
  8389. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8390. echo "${ECHO_T}$ac_header_preproc" >&6
  8391.  
  8392. # So?  What about this header?
  8393. case $ac_header_compiler:$ac_header_preproc in
  8394.   yes:no )
  8395.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8396. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8397.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8398. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8399.   no:yes )
  8400.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8401. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8402.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8403. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8404.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8405. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8406. esac
  8407. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8408. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8409. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8410.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8411. else
  8412.   eval "$as_ac_Header=$ac_header_preproc"
  8413. fi
  8414. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8415. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8416.  
  8417. fi
  8418. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8419.   cat >>confdefs.h <<_ACEOF
  8420. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8421. _ACEOF
  8422.  smr_have_freetype2_header=yes
  8423. else
  8424.   smr_have_freetype2_header=no
  8425. fi
  8426.  
  8427. done
  8428.  
  8429.  
  8430.   if test x"$smr_test_CPPFLAGS" = xset; then
  8431.     CPPFLAGS=$smr_save_CPPFLAGS
  8432.   else
  8433.     unset CPPFLAGS
  8434.   fi
  8435.  
  8436.  
  8437.  
  8438.  
  8439.  
  8440.  
  8441.  
  8442.     # We need only look for the library if the header has been found
  8443.     # (or no header is needed).
  8444.     if test $smr_have_freetype2_header != no; then
  8445.  
  8446.        echo "$as_me:$LINENO: checking for FT_Get_Name_Index in -lfreetype" >&5
  8447. echo $ECHO_N "checking for FT_Get_Name_Index in -lfreetype... $ECHO_C" >&6
  8448. if test "${ac_cv_lib_freetype_FT_Get_Name_Index+set}" = set; then
  8449.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8450. else
  8451.   ac_check_lib_save_LIBS=$LIBS
  8452. LIBS="-lfreetype $freetype2_CFLAGS $X_CFLAGS $freetype2_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $LIBS"
  8453. cat >conftest.$ac_ext <<_ACEOF
  8454. #line $LINENO "configure"
  8455. #include "confdefs.h"
  8456.  
  8457. /* Override any gcc2 internal prototype to avoid an error.  */
  8458. #ifdef __cplusplus
  8459. extern "C"
  8460. #endif
  8461. /* We use char because int might match the return type of a gcc2
  8462.    builtin and then its argument prototype would still apply.  */
  8463. char FT_Get_Name_Index ();
  8464. #ifdef F77_DUMMY_MAIN
  8465. #  ifdef __cplusplus
  8466.      extern "C"
  8467. #  endif
  8468.    int F77_DUMMY_MAIN() { return 1; }
  8469. #endif
  8470. int
  8471. main ()
  8472. {
  8473. FT_Get_Name_Index ();
  8474.   ;
  8475.   return 0;
  8476. }
  8477. _ACEOF
  8478. rm -f conftest.$ac_objext conftest$ac_exeext
  8479. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8480.   (eval $ac_link) 2>&5
  8481.   ac_status=$?
  8482.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8483.   (exit $ac_status); } &&
  8484.          { ac_try='test -s conftest$ac_exeext'
  8485.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8486.   (eval $ac_try) 2>&5
  8487.   ac_status=$?
  8488.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8489.   (exit $ac_status); }; }; then
  8490.   ac_cv_lib_freetype_FT_Get_Name_Index=yes
  8491. else
  8492.   echo "$as_me: failed program was:" >&5
  8493. cat conftest.$ac_ext >&5
  8494. ac_cv_lib_freetype_FT_Get_Name_Index=no
  8495. fi
  8496. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8497. LIBS=$ac_check_lib_save_LIBS
  8498. fi
  8499. echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Get_Name_Index" >&5
  8500. echo "${ECHO_T}$ac_cv_lib_freetype_FT_Get_Name_Index" >&6
  8501. if test $ac_cv_lib_freetype_FT_Get_Name_Index = yes; then
  8502.   smr_have_freetype2_library=yes
  8503. else
  8504.   smr_have_freetype2_library=no
  8505. fi
  8506.  
  8507.     fi
  8508.  
  8509.     if test x"$smr_have_freetype2_library" = xyes; then
  8510.       echo "$as_me:$LINENO: result: using freetype2 library" >&5
  8511. echo "${ECHO_T}using freetype2 library" >&6
  8512.     else
  8513.       freetype2_LIBS=
  8514.       freetype2_CFLAGS=
  8515.  
  8516.       if test x"$with_freetype2" = xmaybe; then
  8517.         echo "$as_me:$LINENO: result: not using freetype2 library" >&5
  8518. echo "${ECHO_T}not using freetype2 library" >&6
  8519.       else
  8520.         { echo "$as_me:$LINENO: WARNING: requested freetype2 library not found!" >&5
  8521. echo "$as_me: WARNING: requested freetype2 library not found!" >&2;}
  8522.       fi
  8523.     fi
  8524.   fi
  8525.  
  8526.  
  8527.  
  8528.  
  8529.  
  8530.  
  8531.  
  8532.  
  8533.  
  8534.  
  8535.  
  8536.   if test x"$freetype2_LIBS" = x; then
  8537.  
  8538.  
  8539.  
  8540.  
  8541.  
  8542.  
  8543.  
  8544.  
  8545.  
  8546.  
  8547.  
  8548.  
  8549.  
  8550.  
  8551.  
  8552.  
  8553.  
  8554.  
  8555. # Check whether --with-freetype2-library or --without-freetype2-library was given.
  8556. if test "${with_freetype2_library+set}" = set; then
  8557.   withval="$with_freetype2_library"
  8558.   smr_cv_with_freetype2_library=$withval
  8559. fi;
  8560.  
  8561.       echo "$as_me:$LINENO: checking whether to use freetype2 library" >&5
  8562. echo $ECHO_N "checking whether to use freetype2 library... $ECHO_C" >&6
  8563. if test "${smr_cv_with_freetype2_library+set}" = set; then
  8564.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8565. else
  8566.   smr_cv_with_freetype2_library=maybe
  8567. fi
  8568. echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_library" >&5
  8569. echo "${ECHO_T}$smr_cv_with_freetype2_library" >&6
  8570.  
  8571.  
  8572.   case x"$smr_cv_with_freetype2_library" in
  8573.       xyes | xmaybe)
  8574.           freetype2_LIBS="-lfreetype"
  8575.           with_freetype2=$smr_cv_with_freetype2_library
  8576.           ;;
  8577.       xno)
  8578.           freetype2_LIBS=
  8579.           with_freetype2=no
  8580.           ;;
  8581.       *)
  8582.           if test -f "$smr_cv_with_freetype2_library"; then
  8583.             freetype2_LIBS=$smr_cv_with_freetype2_library
  8584.           elif test -d "$smr_cv_with_freetype2_library"; then
  8585.             freetype2_LIBS="-L$smr_cv_with_freetype2_library -lfreetype"
  8586.           else
  8587.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  8588. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  8589.    { (exit 1); exit 1; }; }
  8590.           fi
  8591.           with_freetype2=yes
  8592.           ;;
  8593.   esac
  8594.  
  8595.  
  8596.  
  8597.  
  8598.  
  8599.  
  8600.  
  8601.   if test ! x"$with_freetype2" = xno; then
  8602.  
  8603.     # If we got this far, then the user didn't explicitly ask not to use
  8604.     # the library.
  8605.  
  8606.  
  8607.  
  8608.  
  8609.  
  8610.  
  8611.  
  8612.  
  8613. # Check whether --with-freetype2-includes or --without-freetype2-includes was given.
  8614. if test "${with_freetype2_includes+set}" = set; then
  8615.   withval="$with_freetype2_includes"
  8616.   smr_cv_with_freetype2_includes=$withval
  8617. fi;
  8618.  
  8619.       echo "$as_me:$LINENO: checking where to find the freetype2 header files" >&5
  8620. echo $ECHO_N "checking where to find the freetype2 header files... $ECHO_C" >&6
  8621. if test "${smr_cv_with_freetype2_includes+set}" = set; then
  8622.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8623. else
  8624.   smr_cv_with_freetype2_includes=
  8625. fi
  8626. echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_includes" >&5
  8627. echo "${ECHO_T}$smr_cv_with_freetype2_includes" >&6
  8628.  
  8629.   if test ! x"$smr_cv_with_freetype2_includes" = x; then
  8630.     if test -d "$smr_cv_with_freetype2_includes"; then
  8631.       freetype2_CFLAGS="-I$smr_cv_with_freetype2_includes"
  8632.     else
  8633.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  8634. echo "$as_me: error: argument must be a directory" >&2;}
  8635.    { (exit 1); exit 1; }; }
  8636.     fi
  8637.   else
  8638.     freetype2_CFLAGS=
  8639.   fi
  8640.  
  8641.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  8642.   smr_save_CPPFLAGS="$CPPFLAGS"
  8643.   CPPFLAGS="$CPPFLAGS $freetype2_CFLAGS $X_CFLAGS"
  8644.  
  8645.  
  8646. for ac_header in freetype.h
  8647. do
  8648. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8649. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8650.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  8651. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8652. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8653.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8654. fi
  8655. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8656. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8657. else
  8658.   # Is the header compilable?
  8659. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8660. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8661. cat >conftest.$ac_ext <<_ACEOF
  8662. #line $LINENO "configure"
  8663. #include "confdefs.h"
  8664. $ac_includes_default
  8665. #include <$ac_header>
  8666. _ACEOF
  8667. rm -f conftest.$ac_objext
  8668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8669.   (eval $ac_compile) 2>&5
  8670.   ac_status=$?
  8671.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8672.   (exit $ac_status); } &&
  8673.          { ac_try='test -s conftest.$ac_objext'
  8674.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8675.   (eval $ac_try) 2>&5
  8676.   ac_status=$?
  8677.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8678.   (exit $ac_status); }; }; then
  8679.   ac_header_compiler=yes
  8680. else
  8681.   echo "$as_me: failed program was:" >&5
  8682. cat conftest.$ac_ext >&5
  8683. ac_header_compiler=no
  8684. fi
  8685. rm -f conftest.$ac_objext conftest.$ac_ext
  8686. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8687. echo "${ECHO_T}$ac_header_compiler" >&6
  8688.  
  8689. # Is the header present?
  8690. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8691. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8692. cat >conftest.$ac_ext <<_ACEOF
  8693. #line $LINENO "configure"
  8694. #include "confdefs.h"
  8695. #include <$ac_header>
  8696. _ACEOF
  8697. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8698.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8699.   ac_status=$?
  8700.   egrep -v '^ *\+' conftest.er1 >conftest.err
  8701.   rm -f conftest.er1
  8702.   cat conftest.err >&5
  8703.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704.   (exit $ac_status); } >/dev/null; then
  8705.   if test -s conftest.err; then
  8706.     ac_cpp_err=$ac_c_preproc_warn_flag
  8707.   else
  8708.     ac_cpp_err=
  8709.   fi
  8710. else
  8711.   ac_cpp_err=yes
  8712. fi
  8713. if test -z "$ac_cpp_err"; then
  8714.   ac_header_preproc=yes
  8715. else
  8716.   echo "$as_me: failed program was:" >&5
  8717.   cat conftest.$ac_ext >&5
  8718.   ac_header_preproc=no
  8719. fi
  8720. rm -f conftest.err conftest.$ac_ext
  8721. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8722. echo "${ECHO_T}$ac_header_preproc" >&6
  8723.  
  8724. # So?  What about this header?
  8725. case $ac_header_compiler:$ac_header_preproc in
  8726.   yes:no )
  8727.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8728. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8729.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8730. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8731.   no:yes )
  8732.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8733. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8734.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8735. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8736.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8737. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8738. esac
  8739. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8740. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8741. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8742.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8743. else
  8744.   eval "$as_ac_Header=$ac_header_preproc"
  8745. fi
  8746. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8747. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8748.  
  8749. fi
  8750. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8751.   cat >>confdefs.h <<_ACEOF
  8752. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8753. _ACEOF
  8754.  smr_have_freetype2_header=yes
  8755. else
  8756.   smr_have_freetype2_header=no
  8757. fi
  8758.  
  8759. done
  8760.  
  8761.  
  8762.   if test x"$smr_test_CPPFLAGS" = xset; then
  8763.     CPPFLAGS=$smr_save_CPPFLAGS
  8764.   else
  8765.     unset CPPFLAGS
  8766.   fi
  8767.  
  8768.  
  8769.  
  8770.  
  8771.  
  8772.  
  8773.  
  8774.     # We need only look for the library if the header has been found
  8775.     # (or no header is needed).
  8776.     if test $smr_have_freetype2_header != no; then
  8777.  
  8778.        echo "$as_me:$LINENO: checking for FT_Get_Name_Index in -lfreetype" >&5
  8779. echo $ECHO_N "checking for FT_Get_Name_Index in -lfreetype... $ECHO_C" >&6
  8780. if test "${ac_cv_lib_freetype_FT_Get_Name_Index+set}" = set; then
  8781.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8782. else
  8783.   ac_check_lib_save_LIBS=$LIBS
  8784. LIBS="-lfreetype $freetype2_CFLAGS $X_CFLAGS $freetype2_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $LIBS"
  8785. cat >conftest.$ac_ext <<_ACEOF
  8786. #line $LINENO "configure"
  8787. #include "confdefs.h"
  8788.  
  8789. /* Override any gcc2 internal prototype to avoid an error.  */
  8790. #ifdef __cplusplus
  8791. extern "C"
  8792. #endif
  8793. /* We use char because int might match the return type of a gcc2
  8794.    builtin and then its argument prototype would still apply.  */
  8795. char FT_Get_Name_Index ();
  8796. #ifdef F77_DUMMY_MAIN
  8797. #  ifdef __cplusplus
  8798.      extern "C"
  8799. #  endif
  8800.    int F77_DUMMY_MAIN() { return 1; }
  8801. #endif
  8802. int
  8803. main ()
  8804. {
  8805. FT_Get_Name_Index ();
  8806.   ;
  8807.   return 0;
  8808. }
  8809. _ACEOF
  8810. rm -f conftest.$ac_objext conftest$ac_exeext
  8811. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8812.   (eval $ac_link) 2>&5
  8813.   ac_status=$?
  8814.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8815.   (exit $ac_status); } &&
  8816.          { ac_try='test -s conftest$ac_exeext'
  8817.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8818.   (eval $ac_try) 2>&5
  8819.   ac_status=$?
  8820.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8821.   (exit $ac_status); }; }; then
  8822.   ac_cv_lib_freetype_FT_Get_Name_Index=yes
  8823. else
  8824.   echo "$as_me: failed program was:" >&5
  8825. cat conftest.$ac_ext >&5
  8826. ac_cv_lib_freetype_FT_Get_Name_Index=no
  8827. fi
  8828. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8829. LIBS=$ac_check_lib_save_LIBS
  8830. fi
  8831. echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Get_Name_Index" >&5
  8832. echo "${ECHO_T}$ac_cv_lib_freetype_FT_Get_Name_Index" >&6
  8833. if test $ac_cv_lib_freetype_FT_Get_Name_Index = yes; then
  8834.   smr_have_freetype2_library=yes
  8835. else
  8836.   smr_have_freetype2_library=no
  8837. fi
  8838.  
  8839.     fi
  8840.  
  8841.     if test x"$smr_have_freetype2_library" = xyes; then
  8842.       echo "$as_me:$LINENO: result: using freetype2 library" >&5
  8843. echo "${ECHO_T}using freetype2 library" >&6
  8844.     else
  8845.       freetype2_LIBS=
  8846.       freetype2_CFLAGS=
  8847.  
  8848.       if test x"$with_freetype2" = xmaybe; then
  8849.         echo "$as_me:$LINENO: result: not using freetype2 library" >&5
  8850. echo "${ECHO_T}not using freetype2 library" >&6
  8851.       else
  8852.         { echo "$as_me:$LINENO: WARNING: requested freetype2 library not found!" >&5
  8853. echo "$as_me: WARNING: requested freetype2 library not found!" >&2;}
  8854.       fi
  8855.     fi
  8856.   fi
  8857.  
  8858.  
  8859.  
  8860.  
  8861.  
  8862.  
  8863.  
  8864.  
  8865.  
  8866.  
  8867.  
  8868.   fi
  8869.   if test x"$freetype2_LIBS" != x; then
  8870.     cat >>confdefs.h <<\_ACEOF
  8871. #define FREETYPE2 1
  8872. _ACEOF
  8873.  
  8874.   fi
  8875.  
  8876.  
  8877.   if test x"$freetype2_LIBS" = x; then
  8878.  
  8879.  
  8880.  
  8881.  
  8882.  
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896. # Check whether --with-freetype-library or --without-freetype-library was given.
  8897. if test "${with_freetype_library+set}" = set; then
  8898.   withval="$with_freetype_library"
  8899.   smr_cv_with_freetype_library=$withval
  8900. fi;
  8901.  
  8902.       echo "$as_me:$LINENO: checking whether to use freetype library" >&5
  8903. echo $ECHO_N "checking whether to use freetype library... $ECHO_C" >&6
  8904. if test "${smr_cv_with_freetype_library+set}" = set; then
  8905.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8906. else
  8907.   smr_cv_with_freetype_library=maybe
  8908. fi
  8909. echo "$as_me:$LINENO: result: $smr_cv_with_freetype_library" >&5
  8910. echo "${ECHO_T}$smr_cv_with_freetype_library" >&6
  8911.  
  8912.  
  8913.   case x"$smr_cv_with_freetype_library" in
  8914.       xyes | xmaybe)
  8915.           freetype_LIBS="-lttf"
  8916.           with_freetype=$smr_cv_with_freetype_library
  8917.           ;;
  8918.       xno)
  8919.           freetype_LIBS=
  8920.           with_freetype=no
  8921.           ;;
  8922.       *)
  8923.           if test -f "$smr_cv_with_freetype_library"; then
  8924.             freetype_LIBS=$smr_cv_with_freetype_library
  8925.           elif test -d "$smr_cv_with_freetype_library"; then
  8926.             freetype_LIBS="-L$smr_cv_with_freetype_library -lttf"
  8927.           else
  8928.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  8929. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  8930.    { (exit 1); exit 1; }; }
  8931.           fi
  8932.           with_freetype=yes
  8933.           ;;
  8934.   esac
  8935.  
  8936.  
  8937.  
  8938.  
  8939.  
  8940.  
  8941.  
  8942.   if test ! x"$with_freetype" = xno; then
  8943.  
  8944.     # If we got this far, then the user didn't explicitly ask not to use
  8945.     # the library.
  8946.  
  8947.  
  8948.  
  8949.  
  8950.  
  8951.  
  8952.  
  8953.  
  8954. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  8955. if test "${with_freetype_includes+set}" = set; then
  8956.   withval="$with_freetype_includes"
  8957.   smr_cv_with_freetype_includes=$withval
  8958. fi;
  8959.  
  8960.       echo "$as_me:$LINENO: checking where to find the freetype header files" >&5
  8961. echo $ECHO_N "checking where to find the freetype header files... $ECHO_C" >&6
  8962. if test "${smr_cv_with_freetype_includes+set}" = set; then
  8963.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8964. else
  8965.   smr_cv_with_freetype_includes=
  8966. fi
  8967. echo "$as_me:$LINENO: result: $smr_cv_with_freetype_includes" >&5
  8968. echo "${ECHO_T}$smr_cv_with_freetype_includes" >&6
  8969.  
  8970.   if test ! x"$smr_cv_with_freetype_includes" = x; then
  8971.     if test -d "$smr_cv_with_freetype_includes"; then
  8972.       freetype_CFLAGS="-I$smr_cv_with_freetype_includes"
  8973.     else
  8974.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  8975. echo "$as_me: error: argument must be a directory" >&2;}
  8976.    { (exit 1); exit 1; }; }
  8977.     fi
  8978.   else
  8979.     freetype_CFLAGS=
  8980.   fi
  8981.  
  8982.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  8983.   smr_save_CPPFLAGS="$CPPFLAGS"
  8984.   CPPFLAGS="$CPPFLAGS $freetype_CFLAGS $X_CFLAGS"
  8985.  
  8986.  
  8987. for ac_header in freetype/freetype.h
  8988. do
  8989. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8990. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8991.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  8992. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8993. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8994.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8995. fi
  8996. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8997. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8998. else
  8999.   # Is the header compilable?
  9000. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9001. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9002. cat >conftest.$ac_ext <<_ACEOF
  9003. #line $LINENO "configure"
  9004. #include "confdefs.h"
  9005. $ac_includes_default
  9006. #include <$ac_header>
  9007. _ACEOF
  9008. rm -f conftest.$ac_objext
  9009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9010.   (eval $ac_compile) 2>&5
  9011.   ac_status=$?
  9012.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013.   (exit $ac_status); } &&
  9014.          { ac_try='test -s conftest.$ac_objext'
  9015.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9016.   (eval $ac_try) 2>&5
  9017.   ac_status=$?
  9018.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9019.   (exit $ac_status); }; }; then
  9020.   ac_header_compiler=yes
  9021. else
  9022.   echo "$as_me: failed program was:" >&5
  9023. cat conftest.$ac_ext >&5
  9024. ac_header_compiler=no
  9025. fi
  9026. rm -f conftest.$ac_objext conftest.$ac_ext
  9027. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9028. echo "${ECHO_T}$ac_header_compiler" >&6
  9029.  
  9030. # Is the header present?
  9031. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9032. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9033. cat >conftest.$ac_ext <<_ACEOF
  9034. #line $LINENO "configure"
  9035. #include "confdefs.h"
  9036. #include <$ac_header>
  9037. _ACEOF
  9038. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9039.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9040.   ac_status=$?
  9041.   egrep -v '^ *\+' conftest.er1 >conftest.err
  9042.   rm -f conftest.er1
  9043.   cat conftest.err >&5
  9044.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9045.   (exit $ac_status); } >/dev/null; then
  9046.   if test -s conftest.err; then
  9047.     ac_cpp_err=$ac_c_preproc_warn_flag
  9048.   else
  9049.     ac_cpp_err=
  9050.   fi
  9051. else
  9052.   ac_cpp_err=yes
  9053. fi
  9054. if test -z "$ac_cpp_err"; then
  9055.   ac_header_preproc=yes
  9056. else
  9057.   echo "$as_me: failed program was:" >&5
  9058.   cat conftest.$ac_ext >&5
  9059.   ac_header_preproc=no
  9060. fi
  9061. rm -f conftest.err conftest.$ac_ext
  9062. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9063. echo "${ECHO_T}$ac_header_preproc" >&6
  9064.  
  9065. # So?  What about this header?
  9066. case $ac_header_compiler:$ac_header_preproc in
  9067.   yes:no )
  9068.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9069. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9070.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9071. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9072.   no:yes )
  9073.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9074. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9075.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9076. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9077.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9078. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9079. esac
  9080. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9081. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9082. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9083.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9084. else
  9085.   eval "$as_ac_Header=$ac_header_preproc"
  9086. fi
  9087. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9088. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9089.  
  9090. fi
  9091. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9092.   cat >>confdefs.h <<_ACEOF
  9093. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9094. _ACEOF
  9095.  smr_have_freetype_header=yes
  9096. else
  9097.   smr_have_freetype_header=no
  9098. fi
  9099.  
  9100. done
  9101.  
  9102.  
  9103.   if test x"$smr_test_CPPFLAGS" = xset; then
  9104.     CPPFLAGS=$smr_save_CPPFLAGS
  9105.   else
  9106.     unset CPPFLAGS
  9107.   fi
  9108.  
  9109.  
  9110.  
  9111.  
  9112.  
  9113.  
  9114.  
  9115.     # We need only look for the library if the header has been found
  9116.     # (or no header is needed).
  9117.     if test $smr_have_freetype_header != no; then
  9118.  
  9119.        echo "$as_me:$LINENO: checking for TT_Init_FreeType in -lttf" >&5
  9120. echo $ECHO_N "checking for TT_Init_FreeType in -lttf... $ECHO_C" >&6
  9121. if test "${ac_cv_lib_ttf_TT_Init_FreeType+set}" = set; then
  9122.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9123. else
  9124.   ac_check_lib_save_LIBS=$LIBS
  9125. LIBS="-lttf $freetype_CFLAGS $X_CFLAGS $freetype_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $LIBS"
  9126. cat >conftest.$ac_ext <<_ACEOF
  9127. #line $LINENO "configure"
  9128. #include "confdefs.h"
  9129.  
  9130. /* Override any gcc2 internal prototype to avoid an error.  */
  9131. #ifdef __cplusplus
  9132. extern "C"
  9133. #endif
  9134. /* We use char because int might match the return type of a gcc2
  9135.    builtin and then its argument prototype would still apply.  */
  9136. char TT_Init_FreeType ();
  9137. #ifdef F77_DUMMY_MAIN
  9138. #  ifdef __cplusplus
  9139.      extern "C"
  9140. #  endif
  9141.    int F77_DUMMY_MAIN() { return 1; }
  9142. #endif
  9143. int
  9144. main ()
  9145. {
  9146. TT_Init_FreeType ();
  9147.   ;
  9148.   return 0;
  9149. }
  9150. _ACEOF
  9151. rm -f conftest.$ac_objext conftest$ac_exeext
  9152. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9153.   (eval $ac_link) 2>&5
  9154.   ac_status=$?
  9155.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9156.   (exit $ac_status); } &&
  9157.          { ac_try='test -s conftest$ac_exeext'
  9158.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9159.   (eval $ac_try) 2>&5
  9160.   ac_status=$?
  9161.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162.   (exit $ac_status); }; }; then
  9163.   ac_cv_lib_ttf_TT_Init_FreeType=yes
  9164. else
  9165.   echo "$as_me: failed program was:" >&5
  9166. cat conftest.$ac_ext >&5
  9167. ac_cv_lib_ttf_TT_Init_FreeType=no
  9168. fi
  9169. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9170. LIBS=$ac_check_lib_save_LIBS
  9171. fi
  9172. echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Init_FreeType" >&5
  9173. echo "${ECHO_T}$ac_cv_lib_ttf_TT_Init_FreeType" >&6
  9174. if test $ac_cv_lib_ttf_TT_Init_FreeType = yes; then
  9175.   smr_have_freetype_library=yes
  9176. else
  9177.   smr_have_freetype_library=no
  9178. fi
  9179.  
  9180.     fi
  9181.  
  9182.     if test x"$smr_have_freetype_library" = xyes; then
  9183.       echo "$as_me:$LINENO: result: using freetype library" >&5
  9184. echo "${ECHO_T}using freetype library" >&6
  9185.     else
  9186.       freetype_LIBS=
  9187.       freetype_CFLAGS=
  9188.  
  9189.       if test x"$with_freetype" = xmaybe; then
  9190.         echo "$as_me:$LINENO: result: not using freetype library" >&5
  9191. echo "${ECHO_T}not using freetype library" >&6
  9192.       else
  9193.         { echo "$as_me:$LINENO: WARNING: requested freetype library not found!" >&5
  9194. echo "$as_me: WARNING: requested freetype library not found!" >&2;}
  9195.       fi
  9196.     fi
  9197.   fi
  9198.  
  9199.  
  9200.  
  9201.  
  9202.  
  9203.  
  9204.  
  9205.  
  9206.  
  9207.  
  9208.  
  9209.     if test x"$freetype_LIBS" = x; then
  9210.  
  9211.  
  9212.  
  9213.  
  9214.  
  9215.  
  9216.  
  9217.  
  9218.  
  9219.  
  9220.  
  9221.  
  9222.  
  9223.  
  9224.  
  9225.  
  9226.  
  9227.  
  9228. # Check whether --with-freetype-library or --without-freetype-library was given.
  9229. if test "${with_freetype_library+set}" = set; then
  9230.   withval="$with_freetype_library"
  9231.   smr_cv_with_freetype_library=$withval
  9232. fi;
  9233.  
  9234.       echo "$as_me:$LINENO: checking whether to use freetype library" >&5
  9235. echo $ECHO_N "checking whether to use freetype library... $ECHO_C" >&6
  9236. if test "${smr_cv_with_freetype_library+set}" = set; then
  9237.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9238. else
  9239.   smr_cv_with_freetype_library=maybe
  9240. fi
  9241. echo "$as_me:$LINENO: result: $smr_cv_with_freetype_library" >&5
  9242. echo "${ECHO_T}$smr_cv_with_freetype_library" >&6
  9243.  
  9244.  
  9245.   case x"$smr_cv_with_freetype_library" in
  9246.       xyes | xmaybe)
  9247.           freetype_LIBS="-lttf"
  9248.           with_freetype=$smr_cv_with_freetype_library
  9249.           ;;
  9250.       xno)
  9251.           freetype_LIBS=
  9252.           with_freetype=no
  9253.           ;;
  9254.       *)
  9255.           if test -f "$smr_cv_with_freetype_library"; then
  9256.             freetype_LIBS=$smr_cv_with_freetype_library
  9257.           elif test -d "$smr_cv_with_freetype_library"; then
  9258.             freetype_LIBS="-L$smr_cv_with_freetype_library -lttf"
  9259.           else
  9260.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  9261. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  9262.    { (exit 1); exit 1; }; }
  9263.           fi
  9264.           with_freetype=yes
  9265.           ;;
  9266.   esac
  9267.  
  9268.  
  9269.  
  9270.  
  9271.  
  9272.  
  9273.  
  9274.   if test ! x"$with_freetype" = xno; then
  9275.  
  9276.     # If we got this far, then the user didn't explicitly ask not to use
  9277.     # the library.
  9278.  
  9279.  
  9280.  
  9281.  
  9282.  
  9283.  
  9284.  
  9285.  
  9286. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  9287. if test "${with_freetype_includes+set}" = set; then
  9288.   withval="$with_freetype_includes"
  9289.   smr_cv_with_freetype_includes=$withval
  9290. fi;
  9291.  
  9292.       echo "$as_me:$LINENO: checking where to find the freetype header files" >&5
  9293. echo $ECHO_N "checking where to find the freetype header files... $ECHO_C" >&6
  9294. if test "${smr_cv_with_freetype_includes+set}" = set; then
  9295.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9296. else
  9297.   smr_cv_with_freetype_includes=
  9298. fi
  9299. echo "$as_me:$LINENO: result: $smr_cv_with_freetype_includes" >&5
  9300. echo "${ECHO_T}$smr_cv_with_freetype_includes" >&6
  9301.  
  9302.   if test ! x"$smr_cv_with_freetype_includes" = x; then
  9303.     if test -d "$smr_cv_with_freetype_includes"; then
  9304.       freetype_CFLAGS="-I$smr_cv_with_freetype_includes"
  9305.     else
  9306.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  9307. echo "$as_me: error: argument must be a directory" >&2;}
  9308.    { (exit 1); exit 1; }; }
  9309.     fi
  9310.   else
  9311.     freetype_CFLAGS=
  9312.   fi
  9313.  
  9314.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  9315.   smr_save_CPPFLAGS="$CPPFLAGS"
  9316.   CPPFLAGS="$CPPFLAGS $freetype_CFLAGS $X_CFLAGS"
  9317.  
  9318.  
  9319. for ac_header in freetype.h
  9320. do
  9321. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9322. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9323.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  9324. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9326.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9327. fi
  9328. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9329. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9330. else
  9331.   # Is the header compilable?
  9332. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9333. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9334. cat >conftest.$ac_ext <<_ACEOF
  9335. #line $LINENO "configure"
  9336. #include "confdefs.h"
  9337. $ac_includes_default
  9338. #include <$ac_header>
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext
  9341. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9342.   (eval $ac_compile) 2>&5
  9343.   ac_status=$?
  9344.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9345.   (exit $ac_status); } &&
  9346.          { ac_try='test -s conftest.$ac_objext'
  9347.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9348.   (eval $ac_try) 2>&5
  9349.   ac_status=$?
  9350.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9351.   (exit $ac_status); }; }; then
  9352.   ac_header_compiler=yes
  9353. else
  9354.   echo "$as_me: failed program was:" >&5
  9355. cat conftest.$ac_ext >&5
  9356. ac_header_compiler=no
  9357. fi
  9358. rm -f conftest.$ac_objext conftest.$ac_ext
  9359. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9360. echo "${ECHO_T}$ac_header_compiler" >&6
  9361.  
  9362. # Is the header present?
  9363. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9364. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9365. cat >conftest.$ac_ext <<_ACEOF
  9366. #line $LINENO "configure"
  9367. #include "confdefs.h"
  9368. #include <$ac_header>
  9369. _ACEOF
  9370. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9371.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9372.   ac_status=$?
  9373.   egrep -v '^ *\+' conftest.er1 >conftest.err
  9374.   rm -f conftest.er1
  9375.   cat conftest.err >&5
  9376.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9377.   (exit $ac_status); } >/dev/null; then
  9378.   if test -s conftest.err; then
  9379.     ac_cpp_err=$ac_c_preproc_warn_flag
  9380.   else
  9381.     ac_cpp_err=
  9382.   fi
  9383. else
  9384.   ac_cpp_err=yes
  9385. fi
  9386. if test -z "$ac_cpp_err"; then
  9387.   ac_header_preproc=yes
  9388. else
  9389.   echo "$as_me: failed program was:" >&5
  9390.   cat conftest.$ac_ext >&5
  9391.   ac_header_preproc=no
  9392. fi
  9393. rm -f conftest.err conftest.$ac_ext
  9394. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9395. echo "${ECHO_T}$ac_header_preproc" >&6
  9396.  
  9397. # So?  What about this header?
  9398. case $ac_header_compiler:$ac_header_preproc in
  9399.   yes:no )
  9400.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9401. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9402.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9403. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9404.   no:yes )
  9405.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9406. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9407.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9408. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9409.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9410. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9411. esac
  9412. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9413. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9414. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9415.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9416. else
  9417.   eval "$as_ac_Header=$ac_header_preproc"
  9418. fi
  9419. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9420. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9421.  
  9422. fi
  9423. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9424.   cat >>confdefs.h <<_ACEOF
  9425. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9426. _ACEOF
  9427.  smr_have_freetype_header=yes
  9428. else
  9429.   smr_have_freetype_header=no
  9430. fi
  9431.  
  9432. done
  9433.  
  9434.  
  9435.   if test x"$smr_test_CPPFLAGS" = xset; then
  9436.     CPPFLAGS=$smr_save_CPPFLAGS
  9437.   else
  9438.     unset CPPFLAGS
  9439.   fi
  9440.  
  9441.  
  9442.  
  9443.  
  9444.  
  9445.  
  9446.  
  9447.     # We need only look for the library if the header has been found
  9448.     # (or no header is needed).
  9449.     if test $smr_have_freetype_header != no; then
  9450.  
  9451.        echo "$as_me:$LINENO: checking for TT_Init_FreeType in -lttf" >&5
  9452. echo $ECHO_N "checking for TT_Init_FreeType in -lttf... $ECHO_C" >&6
  9453. if test "${ac_cv_lib_ttf_TT_Init_FreeType+set}" = set; then
  9454.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9455. else
  9456.   ac_check_lib_save_LIBS=$LIBS
  9457. LIBS="-lttf $freetype_CFLAGS $X_CFLAGS $freetype_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $LIBS"
  9458. cat >conftest.$ac_ext <<_ACEOF
  9459. #line $LINENO "configure"
  9460. #include "confdefs.h"
  9461.  
  9462. /* Override any gcc2 internal prototype to avoid an error.  */
  9463. #ifdef __cplusplus
  9464. extern "C"
  9465. #endif
  9466. /* We use char because int might match the return type of a gcc2
  9467.    builtin and then its argument prototype would still apply.  */
  9468. char TT_Init_FreeType ();
  9469. #ifdef F77_DUMMY_MAIN
  9470. #  ifdef __cplusplus
  9471.      extern "C"
  9472. #  endif
  9473.    int F77_DUMMY_MAIN() { return 1; }
  9474. #endif
  9475. int
  9476. main ()
  9477. {
  9478. TT_Init_FreeType ();
  9479.   ;
  9480.   return 0;
  9481. }
  9482. _ACEOF
  9483. rm -f conftest.$ac_objext conftest$ac_exeext
  9484. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9485.   (eval $ac_link) 2>&5
  9486.   ac_status=$?
  9487.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9488.   (exit $ac_status); } &&
  9489.          { ac_try='test -s conftest$ac_exeext'
  9490.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9491.   (eval $ac_try) 2>&5
  9492.   ac_status=$?
  9493.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9494.   (exit $ac_status); }; }; then
  9495.   ac_cv_lib_ttf_TT_Init_FreeType=yes
  9496. else
  9497.   echo "$as_me: failed program was:" >&5
  9498. cat conftest.$ac_ext >&5
  9499. ac_cv_lib_ttf_TT_Init_FreeType=no
  9500. fi
  9501. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9502. LIBS=$ac_check_lib_save_LIBS
  9503. fi
  9504. echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Init_FreeType" >&5
  9505. echo "${ECHO_T}$ac_cv_lib_ttf_TT_Init_FreeType" >&6
  9506. if test $ac_cv_lib_ttf_TT_Init_FreeType = yes; then
  9507.   smr_have_freetype_library=yes
  9508. else
  9509.   smr_have_freetype_library=no
  9510. fi
  9511.  
  9512.     fi
  9513.  
  9514.     if test x"$smr_have_freetype_library" = xyes; then
  9515.       echo "$as_me:$LINENO: result: using freetype library" >&5
  9516. echo "${ECHO_T}using freetype library" >&6
  9517.     else
  9518.       freetype_LIBS=
  9519.       freetype_CFLAGS=
  9520.  
  9521.       if test x"$with_freetype" = xmaybe; then
  9522.         echo "$as_me:$LINENO: result: not using freetype library" >&5
  9523. echo "${ECHO_T}not using freetype library" >&6
  9524.       else
  9525.         { echo "$as_me:$LINENO: WARNING: requested freetype library not found!" >&5
  9526. echo "$as_me: WARNING: requested freetype library not found!" >&2;}
  9527.       fi
  9528.     fi
  9529.   fi
  9530.  
  9531.  
  9532.  
  9533.  
  9534.  
  9535.  
  9536.  
  9537.  
  9538.  
  9539.  
  9540.  
  9541.     fi
  9542.  
  9543.  
  9544.   fi
  9545. fi
  9546.  
  9547.  
  9548.  
  9549.  
  9550.  
  9551.  
  9552.  
  9553.  
  9554.  
  9555.  
  9556.  
  9557.  
  9558.  
  9559.  
  9560.  
  9561.  
  9562.  
  9563.  
  9564.  
  9565. # Check whether --with-libpaper-library or --without-libpaper-library was given.
  9566. if test "${with_libpaper_library+set}" = set; then
  9567.   withval="$with_libpaper_library"
  9568.   smr_cv_with_libpaper_library=$withval
  9569. fi;
  9570.  
  9571.       echo "$as_me:$LINENO: checking whether to use libpaper library" >&5
  9572. echo $ECHO_N "checking whether to use libpaper library... $ECHO_C" >&6
  9573. if test "${smr_cv_with_libpaper_library+set}" = set; then
  9574.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9575. else
  9576.   smr_cv_with_libpaper_library=maybe
  9577. fi
  9578. echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_library" >&5
  9579. echo "${ECHO_T}$smr_cv_with_libpaper_library" >&6
  9580.  
  9581.  
  9582.   case x"$smr_cv_with_libpaper_library" in
  9583.       xyes | xmaybe)
  9584.           libpaper_LIBS="-lpaper"
  9585.           with_libpaper=$smr_cv_with_libpaper_library
  9586.           ;;
  9587.       xno)
  9588.           libpaper_LIBS=
  9589.           with_libpaper=no
  9590.           ;;
  9591.       *)
  9592.           if test -f "$smr_cv_with_libpaper_library"; then
  9593.             libpaper_LIBS=$smr_cv_with_libpaper_library
  9594.           elif test -d "$smr_cv_with_libpaper_library"; then
  9595.             libpaper_LIBS="-L$smr_cv_with_libpaper_library -lpaper"
  9596.           else
  9597.             { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
  9598. echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
  9599.    { (exit 1); exit 1; }; }
  9600.           fi
  9601.           with_libpaper=yes
  9602.           ;;
  9603.   esac
  9604.  
  9605.  
  9606.  
  9607.  
  9608.  
  9609.  
  9610.  
  9611.   if test ! x"$with_libpaper" = xno; then
  9612.  
  9613.     # If we got this far, then the user didn't explicitly ask not to use
  9614.     # the library.
  9615.  
  9616.  
  9617.  
  9618.  
  9619.  
  9620.  
  9621.  
  9622.  
  9623. # Check whether --with-libpaper-includes or --without-libpaper-includes was given.
  9624. if test "${with_libpaper_includes+set}" = set; then
  9625.   withval="$with_libpaper_includes"
  9626.   smr_cv_with_libpaper_includes=$withval
  9627. fi;
  9628.  
  9629.       echo "$as_me:$LINENO: checking where to find the libpaper header files" >&5
  9630. echo $ECHO_N "checking where to find the libpaper header files... $ECHO_C" >&6
  9631. if test "${smr_cv_with_libpaper_includes+set}" = set; then
  9632.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9633. else
  9634.   smr_cv_with_libpaper_includes=
  9635. fi
  9636. echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_includes" >&5
  9637. echo "${ECHO_T}$smr_cv_with_libpaper_includes" >&6
  9638.  
  9639.   if test ! x"$smr_cv_with_libpaper_includes" = x; then
  9640.     if test -d "$smr_cv_with_libpaper_includes"; then
  9641.       libpaper_CFLAGS="-I$smr_cv_with_libpaper_includes"
  9642.     else
  9643.       { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
  9644. echo "$as_me: error: argument must be a directory" >&2;}
  9645.    { (exit 1); exit 1; }; }
  9646.     fi
  9647.   else
  9648.     libpaper_CFLAGS=
  9649.   fi
  9650.  
  9651.         smr_test_CPPFLAGS="${CPPFLAGS+set}"
  9652.   smr_save_CPPFLAGS="$CPPFLAGS"
  9653.   CPPFLAGS="$CPPFLAGS $libpaper_CFLAGS "
  9654.  
  9655.  
  9656. for ac_header in paper.h
  9657. do
  9658. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9659. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9660.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  9661. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9662. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9663.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9664. fi
  9665. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9666. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9667. else
  9668.   # Is the header compilable?
  9669. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9670. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9671. cat >conftest.$ac_ext <<_ACEOF
  9672. #line $LINENO "configure"
  9673. #include "confdefs.h"
  9674. $ac_includes_default
  9675. #include <$ac_header>
  9676. _ACEOF
  9677. rm -f conftest.$ac_objext
  9678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9679.   (eval $ac_compile) 2>&5
  9680.   ac_status=$?
  9681.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9682.   (exit $ac_status); } &&
  9683.          { ac_try='test -s conftest.$ac_objext'
  9684.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9685.   (eval $ac_try) 2>&5
  9686.   ac_status=$?
  9687.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9688.   (exit $ac_status); }; }; then
  9689.   ac_header_compiler=yes
  9690. else
  9691.   echo "$as_me: failed program was:" >&5
  9692. cat conftest.$ac_ext >&5
  9693. ac_header_compiler=no
  9694. fi
  9695. rm -f conftest.$ac_objext conftest.$ac_ext
  9696. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9697. echo "${ECHO_T}$ac_header_compiler" >&6
  9698.  
  9699. # Is the header present?
  9700. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9701. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9702. cat >conftest.$ac_ext <<_ACEOF
  9703. #line $LINENO "configure"
  9704. #include "confdefs.h"
  9705. #include <$ac_header>
  9706. _ACEOF
  9707. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9708.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9709.   ac_status=$?
  9710.   egrep -v '^ *\+' conftest.er1 >conftest.err
  9711.   rm -f conftest.er1
  9712.   cat conftest.err >&5
  9713.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9714.   (exit $ac_status); } >/dev/null; then
  9715.   if test -s conftest.err; then
  9716.     ac_cpp_err=$ac_c_preproc_warn_flag
  9717.   else
  9718.     ac_cpp_err=
  9719.   fi
  9720. else
  9721.   ac_cpp_err=yes
  9722. fi
  9723. if test -z "$ac_cpp_err"; then
  9724.   ac_header_preproc=yes
  9725. else
  9726.   echo "$as_me: failed program was:" >&5
  9727.   cat conftest.$ac_ext >&5
  9728.   ac_header_preproc=no
  9729. fi
  9730. rm -f conftest.err conftest.$ac_ext
  9731. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9732. echo "${ECHO_T}$ac_header_preproc" >&6
  9733.  
  9734. # So?  What about this header?
  9735. case $ac_header_compiler:$ac_header_preproc in
  9736.   yes:no )
  9737.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9738. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9739.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9740. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9741.   no:yes )
  9742.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9743. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9744.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9745. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9746.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9747. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  9748. esac
  9749. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9750. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9751. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9752.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9753. else
  9754.   eval "$as_ac_Header=$ac_header_preproc"
  9755. fi
  9756. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9757. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9758.  
  9759. fi
  9760. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9761.   cat >>confdefs.h <<_ACEOF
  9762. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9763. _ACEOF
  9764.  smr_have_libpaper_header=yes
  9765. else
  9766.   smr_have_libpaper_header=no
  9767. fi
  9768.  
  9769. done
  9770.  
  9771.  
  9772.   if test x"$smr_test_CPPFLAGS" = xset; then
  9773.     CPPFLAGS=$smr_save_CPPFLAGS
  9774.   else
  9775.     unset CPPFLAGS
  9776.   fi
  9777.  
  9778.  
  9779.  
  9780.  
  9781.  
  9782.  
  9783.  
  9784.     # We need only look for the library if the header has been found
  9785.     # (or no header is needed).
  9786.     if test $smr_have_libpaper_header != no; then
  9787.  
  9788.        echo "$as_me:$LINENO: checking for paperinit in -lpaper" >&5
  9789. echo $ECHO_N "checking for paperinit in -lpaper... $ECHO_C" >&6
  9790. if test "${ac_cv_lib_paper_paperinit+set}" = set; then
  9791.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9792. else
  9793.   ac_check_lib_save_LIBS=$LIBS
  9794. LIBS="-lpaper $libpaper_CFLAGS  $libpaper_LIBS  $LIBS"
  9795. cat >conftest.$ac_ext <<_ACEOF
  9796. #line $LINENO "configure"
  9797. #include "confdefs.h"
  9798.  
  9799. /* Override any gcc2 internal prototype to avoid an error.  */
  9800. #ifdef __cplusplus
  9801. extern "C"
  9802. #endif
  9803. /* We use char because int might match the return type of a gcc2
  9804.    builtin and then its argument prototype would still apply.  */
  9805. char paperinit ();
  9806. #ifdef F77_DUMMY_MAIN
  9807. #  ifdef __cplusplus
  9808.      extern "C"
  9809. #  endif
  9810.    int F77_DUMMY_MAIN() { return 1; }
  9811. #endif
  9812. int
  9813. main ()
  9814. {
  9815. paperinit ();
  9816.   ;
  9817.   return 0;
  9818. }
  9819. _ACEOF
  9820. rm -f conftest.$ac_objext conftest$ac_exeext
  9821. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9822.   (eval $ac_link) 2>&5
  9823.   ac_status=$?
  9824.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9825.   (exit $ac_status); } &&
  9826.          { ac_try='test -s conftest$ac_exeext'
  9827.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9828.   (eval $ac_try) 2>&5
  9829.   ac_status=$?
  9830.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9831.   (exit $ac_status); }; }; then
  9832.   ac_cv_lib_paper_paperinit=yes
  9833. else
  9834.   echo "$as_me: failed program was:" >&5
  9835. cat conftest.$ac_ext >&5
  9836. ac_cv_lib_paper_paperinit=no
  9837. fi
  9838. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9839. LIBS=$ac_check_lib_save_LIBS
  9840. fi
  9841. echo "$as_me:$LINENO: result: $ac_cv_lib_paper_paperinit" >&5
  9842. echo "${ECHO_T}$ac_cv_lib_paper_paperinit" >&6
  9843. if test $ac_cv_lib_paper_paperinit = yes; then
  9844.   smr_have_libpaper_library=yes
  9845. else
  9846.   smr_have_libpaper_library=no
  9847. fi
  9848.  
  9849.     fi
  9850.  
  9851.     if test x"$smr_have_libpaper_library" = xyes; then
  9852.       echo "$as_me:$LINENO: result: using libpaper library" >&5
  9853. echo "${ECHO_T}using libpaper library" >&6
  9854.     else
  9855.       libpaper_LIBS=
  9856.       libpaper_CFLAGS=
  9857.  
  9858.       if test x"$with_libpaper" = xmaybe; then
  9859.         echo "$as_me:$LINENO: result: not using libpaper library" >&5
  9860. echo "${ECHO_T}not using libpaper library" >&6
  9861.       else
  9862.         { echo "$as_me:$LINENO: WARNING: requested libpaper library not found!" >&5
  9863. echo "$as_me: WARNING: requested libpaper library not found!" >&2;}
  9864.       fi
  9865.     fi
  9866.   fi
  9867.  
  9868.  
  9869.  
  9870.  
  9871.  
  9872.  
  9873.  
  9874.  
  9875.  
  9876.  
  9877.  
  9878.  
  9879.  
  9880.  
  9881. if test -n "$no_x"; then
  9882.   X="#"
  9883.   XPDF_TARGET="all-no-x"
  9884. else
  9885.   X=""
  9886.   XPDF_TARGET="all"
  9887. fi
  9888.  
  9889.  
  9890.  
  9891. ac_config_files="$ac_config_files Makefile xpdf/Makefile goo/Makefile"
  9892. cat >confcache <<\_ACEOF
  9893. # This file is a shell script that caches the results of configure
  9894. # tests run on this system so they can be shared between configure
  9895. # scripts and configure runs, see configure's option --config-cache.
  9896. # It is not useful on other systems.  If it contains results you don't
  9897. # want to keep, you may remove or edit it.
  9898. #
  9899. # config.status only pays attention to the cache file if you give it
  9900. # the --recheck option to rerun configure.
  9901. #
  9902. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  9903. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9904. # following values.
  9905.  
  9906. _ACEOF
  9907.  
  9908. # The following way of writing the cache mishandles newlines in values,
  9909. # but we know of no workaround that is simple, portable, and efficient.
  9910. # So, don't put newlines in cache variables' values.
  9911. # Ultrix sh set writes to stderr and can't be redirected directly,
  9912. # and sets the high bit in the cache file unless we assign to the vars.
  9913. {
  9914.   (set) 2>&1 |
  9915.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9916.     *ac_space=\ *)
  9917.       # `set' does not quote correctly, so add quotes (double-quote
  9918.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  9919.       sed -n \
  9920.         "s/'/'\\\\''/g;
  9921.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9922.       ;;
  9923.     *)
  9924.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  9925.       sed -n \
  9926.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9927.       ;;
  9928.     esac;
  9929. } |
  9930.   sed '
  9931.      t clear
  9932.      : clear
  9933.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9934.      t end
  9935.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9936.      : end' >>confcache
  9937. if cmp -s $cache_file confcache; then :; else
  9938.   if test -w $cache_file; then
  9939.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9940.     cat confcache >$cache_file
  9941.   else
  9942.     echo "not updating unwritable cache $cache_file"
  9943.   fi
  9944. fi
  9945. rm -f confcache
  9946.  
  9947. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9948. # Let make expand exec_prefix.
  9949. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9950.  
  9951. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9952. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9953. # trailing colons and then remove the whole line if VPATH becomes empty
  9954. # (actually we leave an empty line to preserve line numbers).
  9955. if test "x$srcdir" = x.; then
  9956.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  9957. s/:*\$(srcdir):*/:/;
  9958. s/:*\${srcdir}:*/:/;
  9959. s/:*@srcdir@:*/:/;
  9960. s/^\([^=]*=[     ]*\):*/\1/;
  9961. s/:*$//;
  9962. s/^[^=]*=[     ]*$//;
  9963. }'
  9964. fi
  9965.  
  9966. DEFS=-DHAVE_CONFIG_H
  9967.  
  9968.  
  9969. : ${CONFIG_STATUS=./config.status}
  9970. ac_clean_files_save=$ac_clean_files
  9971. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9972. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9973. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9974. cat >$CONFIG_STATUS <<_ACEOF
  9975. #! $SHELL
  9976. # Generated by $as_me.
  9977. # Run this file to recreate the current configuration.
  9978. # Compiler output produced by configure, useful for debugging
  9979. # configure, is in config.log if it exists.
  9980.  
  9981. debug=false
  9982. SHELL=\${CONFIG_SHELL-$SHELL}
  9983. _ACEOF
  9984.  
  9985. cat >>$CONFIG_STATUS <<\_ACEOF
  9986.  
  9987. ## --------------------- ##
  9988. ## M4sh Initialization.  ##
  9989. ## --------------------- ##
  9990.  
  9991. # Be Bourne compatible
  9992. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9993.   emulate sh
  9994.   NULLCMD=:
  9995. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9996.   set -o posix
  9997. fi
  9998.  
  9999. # NLS nuisances.
  10000. # Support unset when possible.
  10001. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  10002.   as_unset=unset
  10003. else
  10004.   as_unset=false
  10005. fi
  10006.  
  10007. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  10008.     { $as_unset LANG || test "${LANG+set}" != set; } ||
  10009.       { LANG=C; export LANG; }
  10010. (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  10011.     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  10012.       { LC_ALL=C; export LC_ALL; }
  10013. (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  10014.     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  10015.       { LC_TIME=C; export LC_TIME; }
  10016. (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  10017.     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  10018.       { LC_CTYPE=C; export LC_CTYPE; }
  10019. (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  10020.     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  10021.       { LANGUAGE=C; export LANGUAGE; }
  10022. (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  10023.     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  10024.       { LC_COLLATE=C; export LC_COLLATE; }
  10025. (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  10026.     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  10027.       { LC_NUMERIC=C; export LC_NUMERIC; }
  10028. (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  10029.     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  10030.       { LC_MESSAGES=C; export LC_MESSAGES; }
  10031.  
  10032.  
  10033. # Name of the executable.
  10034. as_me=`(basename "$0") 2>/dev/null ||
  10035. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10036.      X"$0" : 'X\(//\)$' \| \
  10037.      X"$0" : 'X\(/\)$' \| \
  10038.      .     : '\(.\)' 2>/dev/null ||
  10039. echo X/"$0" |
  10040.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10041.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  10042.         /^X\/\(\/\).*/{ s//\1/; q; }
  10043.         s/.*/./; q'`
  10044.  
  10045. # PATH needs CR, and LINENO needs CR and PATH.
  10046. # Avoid depending upon Character Ranges.
  10047. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10048. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10049. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10050. as_cr_digits='0123456789'
  10051. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10052.  
  10053. # The user is always right.
  10054. if test "${PATH_SEPARATOR+set}" != set; then
  10055.   echo "#! /bin/sh" >conftest.sh
  10056.   echo  "exit 0"   >>conftest.sh
  10057.   chmod +x conftest.sh
  10058.   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  10059.     PATH_SEPARATOR=';'
  10060.   else
  10061.     PATH_SEPARATOR=:
  10062.   fi
  10063.   rm -f conftest.sh
  10064. fi
  10065.  
  10066.  
  10067.   as_lineno_1=$LINENO
  10068.   as_lineno_2=$LINENO
  10069.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10070.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  10071.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  10072.   # Find who we are.  Look in the path if we contain no path at all
  10073.   # relative or not.
  10074.   case $0 in
  10075.     *[\\/]* ) as_myself=$0 ;;
  10076.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH
  10078. do
  10079.   IFS=$as_save_IFS
  10080.   test -z "$as_dir" && as_dir=.
  10081.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10082. done
  10083.  
  10084.        ;;
  10085.   esac
  10086.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  10087.   # in which case we are not to be found in the path.
  10088.   if test "x$as_myself" = x; then
  10089.     as_myself=$0
  10090.   fi
  10091.   if test ! -f "$as_myself"; then
  10092.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10093. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10094.    { (exit 1); exit 1; }; }
  10095.   fi
  10096.   case $CONFIG_SHELL in
  10097.   '')
  10098.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10099. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10100. do
  10101.   IFS=$as_save_IFS
  10102.   test -z "$as_dir" && as_dir=.
  10103.   for as_base in sh bash ksh sh5; do
  10104.      case $as_dir in
  10105.      /*)
  10106.        if ("$as_dir/$as_base" -c '
  10107.   as_lineno_1=$LINENO
  10108.   as_lineno_2=$LINENO
  10109.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10110.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  10111.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  10112.          CONFIG_SHELL=$as_dir/$as_base
  10113.          export CONFIG_SHELL
  10114.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10115.        fi;;
  10116.      esac
  10117.        done
  10118. done
  10119. ;;
  10120.   esac
  10121.  
  10122.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10123.   # uniformly replaced by the line number.  The first 'sed' inserts a
  10124.   # line-number line before each line; the second 'sed' does the real
  10125.   # work.  The second script uses 'N' to pair each line-number line
  10126.   # with the numbered line, and appends trailing '-' during
  10127.   # substitution so that $LINENO is not a special case at line end.
  10128.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10129.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  10130.   sed '=' <$as_myself |
  10131.     sed '
  10132.       N
  10133.       s,$,-,
  10134.       : loop
  10135.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10136.       t loop
  10137.       s,-$,,
  10138.       s,^['$as_cr_digits']*\n,,
  10139.     ' >$as_me.lineno &&
  10140.   chmod +x $as_me.lineno ||
  10141.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10142. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10143.    { (exit 1); exit 1; }; }
  10144.  
  10145.   # Don't try to exec as it changes $[0], causing all sort of problems
  10146.   # (the dirname of $[0] is not the place where we might find the
  10147.   # original and so on.  Autoconf is especially sensible to this).
  10148.   . ./$as_me.lineno
  10149.   # Exit status is that of the last command.
  10150.   exit
  10151. }
  10152.  
  10153.  
  10154. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10155.   *c*,-n*) ECHO_N= ECHO_C='
  10156. ' ECHO_T='    ' ;;
  10157.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10158.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10159. esac
  10160.  
  10161. if expr a : '\(a\)' >/dev/null 2>&1; then
  10162.   as_expr=expr
  10163. else
  10164.   as_expr=false
  10165. fi
  10166.  
  10167. rm -f conf$$ conf$$.exe conf$$.file
  10168. echo >conf$$.file
  10169. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10170.   # We could just check for DJGPP; but this test a) works b) is more generic
  10171.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10172.   if test -f conf$$.exe; then
  10173.     # Don't use ln at all; we don't have any links
  10174.     as_ln_s='cp -p'
  10175.   else
  10176.     as_ln_s='ln -s'
  10177.   fi
  10178. elif ln conf$$.file conf$$ 2>/dev/null; then
  10179.   as_ln_s=ln
  10180. else
  10181.   as_ln_s='cp -p'
  10182. fi
  10183. rm -f conf$$ conf$$.exe conf$$.file
  10184.  
  10185. as_executable_p="test -f"
  10186.  
  10187. # Sed expression to map a string onto a valid CPP name.
  10188. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  10189.  
  10190. # Sed expression to map a string onto a valid variable name.
  10191. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  10192.  
  10193.  
  10194. # IFS
  10195. # We need space, tab and new line, in precisely that order.
  10196. as_nl='
  10197. '
  10198. IFS="     $as_nl"
  10199.  
  10200. # CDPATH.
  10201. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  10202.  
  10203. exec 6>&1
  10204.  
  10205. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10206. # report actual input values of CONFIG_FILES etc. instead of their
  10207. # values after options handling.  Logging --version etc. is OK.
  10208. exec 5>>config.log
  10209. {
  10210.   echo
  10211.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10212. ## Running $as_me. ##
  10213. _ASBOX
  10214. } >&5
  10215. cat >&5 <<_CSEOF
  10216.  
  10217. This file was extended by $as_me, which was
  10218. generated by GNU Autoconf 2.53.  Invocation command line was
  10219.  
  10220.   CONFIG_FILES    = $CONFIG_FILES
  10221.   CONFIG_HEADERS  = $CONFIG_HEADERS
  10222.   CONFIG_LINKS    = $CONFIG_LINKS
  10223.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  10224.   $ $0 $@
  10225.  
  10226. _CSEOF
  10227. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10228. echo >&5
  10229. _ACEOF
  10230.  
  10231. # Files that config.status was made for.
  10232. if test -n "$ac_config_files"; then
  10233.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10234. fi
  10235.  
  10236. if test -n "$ac_config_headers"; then
  10237.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10238. fi
  10239.  
  10240. if test -n "$ac_config_links"; then
  10241.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10242. fi
  10243.  
  10244. if test -n "$ac_config_commands"; then
  10245.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10246. fi
  10247.  
  10248. cat >>$CONFIG_STATUS <<\_ACEOF
  10249.  
  10250. ac_cs_usage="\
  10251. \`$as_me' instantiates files from templates according to the
  10252. current configuration.
  10253.  
  10254. Usage: $0 [OPTIONS] [FILE]...
  10255.  
  10256.   -h, --help       print this help, then exit
  10257.   -V, --version    print version number, then exit
  10258.   -d, --debug      don't remove temporary files
  10259.       --recheck    update $as_me by reconfiguring in the same conditions
  10260.   --file=FILE[:TEMPLATE]
  10261.                    instantiate the configuration file FILE
  10262.   --header=FILE[:TEMPLATE]
  10263.                    instantiate the configuration header FILE
  10264.  
  10265. Configuration files:
  10266. $config_files
  10267.  
  10268. Configuration headers:
  10269. $config_headers
  10270.  
  10271. Report bugs to <bug-autoconf@gnu.org>."
  10272. _ACEOF
  10273.  
  10274. cat >>$CONFIG_STATUS <<_ACEOF
  10275. ac_cs_version="\\
  10276. config.status
  10277. configured by $0, generated by GNU Autoconf 2.53,
  10278.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10279.  
  10280. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  10281. Free Software Foundation, Inc.
  10282. This config.status script is free software; the Free Software Foundation
  10283. gives unlimited permission to copy, distribute and modify it."
  10284. srcdir=$srcdir
  10285. INSTALL="$INSTALL"
  10286. _ACEOF
  10287.  
  10288. cat >>$CONFIG_STATUS <<\_ACEOF
  10289. # If no file are specified by the user, then we need to provide default
  10290. # value.  By we need to know if files were specified by the user.
  10291. ac_need_defaults=:
  10292. while test $# != 0
  10293. do
  10294.   case $1 in
  10295.   --*=*)
  10296.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10297.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10298.     shift
  10299.     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  10300.     shift
  10301.     ;;
  10302.   -*);;
  10303.   *) # This is not an option, so the user has probably given explicit
  10304.      # arguments.
  10305.      ac_need_defaults=false;;
  10306.   esac
  10307.  
  10308.   case $1 in
  10309.   # Handling of the options.
  10310. _ACEOF
  10311. cat >>$CONFIG_STATUS <<_ACEOF
  10312.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10313.     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  10314.     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  10315. _ACEOF
  10316. cat >>$CONFIG_STATUS <<\_ACEOF
  10317.   --version | --vers* | -V )
  10318.     echo "$ac_cs_version"; exit 0 ;;
  10319.   --he | --h)
  10320.     # Conflict between --help and --header
  10321.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10322. Try \`$0 --help' for more information." >&5
  10323. echo "$as_me: error: ambiguous option: $1
  10324. Try \`$0 --help' for more information." >&2;}
  10325.    { (exit 1); exit 1; }; };;
  10326.   --help | --hel | -h )
  10327.     echo "$ac_cs_usage"; exit 0 ;;
  10328.   --debug | --d* | -d )
  10329.     debug=: ;;
  10330.   --file | --fil | --fi | --f )
  10331.     shift
  10332.     CONFIG_FILES="$CONFIG_FILES $1"
  10333.     ac_need_defaults=false;;
  10334.   --header | --heade | --head | --hea )
  10335.     shift
  10336.     CONFIG_HEADERS="$CONFIG_HEADERS $1"
  10337.     ac_need_defaults=false;;
  10338.  
  10339.   # This is an error.
  10340.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10341. Try \`$0 --help' for more information." >&5
  10342. echo "$as_me: error: unrecognized option: $1
  10343. Try \`$0 --help' for more information." >&2;}
  10344.    { (exit 1); exit 1; }; } ;;
  10345.  
  10346.   *) ac_config_targets="$ac_config_targets $1" ;;
  10347.  
  10348.   esac
  10349.   shift
  10350. done
  10351.  
  10352. _ACEOF
  10353.  
  10354.  
  10355.  
  10356.  
  10357.  
  10358. cat >>$CONFIG_STATUS <<\_ACEOF
  10359. for ac_config_target in $ac_config_targets
  10360. do
  10361.   case "$ac_config_target" in
  10362.   # Handling of arguments.
  10363.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10364.   "xpdf/Makefile" ) CONFIG_FILES="$CONFIG_FILES xpdf/Makefile" ;;
  10365.   "goo/Makefile" ) CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;;
  10366.   "aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS aconf.h" ;;
  10367.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10368. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10369.    { (exit 1); exit 1; }; };;
  10370.   esac
  10371. done
  10372.  
  10373. # If the user did not use the arguments to specify the items to instantiate,
  10374. # then the envvar interface is used.  Set only those that are not.
  10375. # We use the long form for the default assignment because of an extremely
  10376. # bizarre bug on SunOS 4.1.3.
  10377. if $ac_need_defaults; then
  10378.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10379.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10380. fi
  10381.  
  10382. # Create a temporary directory, and hook for its removal unless debugging.
  10383. $debug ||
  10384. {
  10385.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10386.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  10387. }
  10388.  
  10389. # Create a (secure) tmp directory for tmp files.
  10390. : ${TMPDIR=/tmp}
  10391. {
  10392.   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  10393.   test -n "$tmp" && test -d "$tmp"
  10394. }  ||
  10395. {
  10396.   tmp=$TMPDIR/cs$$-$RANDOM
  10397.   (umask 077 && mkdir $tmp)
  10398. } ||
  10399. {
  10400.    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  10401.    { (exit 1); exit 1; }
  10402. }
  10403.  
  10404. _ACEOF
  10405.  
  10406. cat >>$CONFIG_STATUS <<_ACEOF
  10407.  
  10408. #
  10409. # CONFIG_FILES section.
  10410. #
  10411.  
  10412. # No need to generate the scripts if there are no CONFIG_FILES.
  10413. # This happens for instance when ./config.status config.h
  10414. if test -n "\$CONFIG_FILES"; then
  10415.   # Protect against being on the right side of a sed subst in config.status.
  10416.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10417.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10418. s,@SHELL@,$SHELL,;t t
  10419. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10420. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10421. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10422. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10423. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10424. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10425. s,@exec_prefix@,$exec_prefix,;t t
  10426. s,@prefix@,$prefix,;t t
  10427. s,@program_transform_name@,$program_transform_name,;t t
  10428. s,@bindir@,$bindir,;t t
  10429. s,@sbindir@,$sbindir,;t t
  10430. s,@libexecdir@,$libexecdir,;t t
  10431. s,@datadir@,$datadir,;t t
  10432. s,@sysconfdir@,$sysconfdir,;t t
  10433. s,@sharedstatedir@,$sharedstatedir,;t t
  10434. s,@localstatedir@,$localstatedir,;t t
  10435. s,@libdir@,$libdir,;t t
  10436. s,@includedir@,$includedir,;t t
  10437. s,@oldincludedir@,$oldincludedir,;t t
  10438. s,@infodir@,$infodir,;t t
  10439. s,@mandir@,$mandir,;t t
  10440. s,@build_alias@,$build_alias,;t t
  10441. s,@host_alias@,$host_alias,;t t
  10442. s,@target_alias@,$target_alias,;t t
  10443. s,@DEFS@,$DEFS,;t t
  10444. s,@ECHO_C@,$ECHO_C,;t t
  10445. s,@ECHO_N@,$ECHO_N,;t t
  10446. s,@ECHO_T@,$ECHO_T,;t t
  10447. s,@LIBS@,$LIBS,;t t
  10448. s,@CC@,$CC,;t t
  10449. s,@CFLAGS@,$CFLAGS,;t t
  10450. s,@LDFLAGS@,$LDFLAGS,;t t
  10451. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10452. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10453. s,@EXEEXT@,$EXEEXT,;t t
  10454. s,@OBJEXT@,$OBJEXT,;t t
  10455. s,@CXX@,$CXX,;t t
  10456. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10457. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10458. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10459. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10460. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10461. s,@RANLIB@,$RANLIB,;t t
  10462. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10463. s,@EXE@,$EXE,;t t
  10464. s,@LIBPREFIX@,$LIBPREFIX,;t t
  10465. s,@AR@,$AR,;t t
  10466. s,@UP_DIR@,$UP_DIR,;t t
  10467. s,@CPP@,$CPP,;t t
  10468. s,@X_CFLAGS@,$X_CFLAGS,;t t
  10469. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  10470. s,@X_LIBS@,$X_LIBS,;t t
  10471. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  10472. s,@Xpm_LIBS@,$Xpm_LIBS,;t t
  10473. s,@Xpm_CFLAGS@,$Xpm_CFLAGS,;t t
  10474. s,@Xext_LIBS@,$Xext_LIBS,;t t
  10475. s,@Xext_CFLAGS@,$Xext_CFLAGS,;t t
  10476. s,@Xp_LIBS@,$Xp_LIBS,;t t
  10477. s,@Xp_CFLAGS@,$Xp_CFLAGS,;t t
  10478. s,@Xt_LIBS@,$Xt_LIBS,;t t
  10479. s,@Xt_CFLAGS@,$Xt_CFLAGS,;t t
  10480. s,@Xm_LIBS@,$Xm_LIBS,;t t
  10481. s,@Xm_CFLAGS@,$Xm_CFLAGS,;t t
  10482. s,@t1_LIBS@,$t1_LIBS,;t t
  10483. s,@t1_CFLAGS@,$t1_CFLAGS,;t t
  10484. s,@freetype2_LIBS@,$freetype2_LIBS,;t t
  10485. s,@freetype2_CFLAGS@,$freetype2_CFLAGS,;t t
  10486. s,@freetype_LIBS@,$freetype_LIBS,;t t
  10487. s,@freetype_CFLAGS@,$freetype_CFLAGS,;t t
  10488. s,@libpaper_LIBS@,$libpaper_LIBS,;t t
  10489. s,@libpaper_CFLAGS@,$libpaper_CFLAGS,;t t
  10490. s,@X@,$X,;t t
  10491. s,@XPDF_TARGET@,$XPDF_TARGET,;t t
  10492. CEOF
  10493.  
  10494. _ACEOF
  10495.  
  10496.   cat >>$CONFIG_STATUS <<\_ACEOF
  10497.   # Split the substitutions into bite-sized pieces for seds with
  10498.   # small command number limits, like on Digital OSF/1 and HP-UX.
  10499.   ac_max_sed_lines=48
  10500.   ac_sed_frag=1 # Number of current file.
  10501.   ac_beg=1 # First line for current file.
  10502.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  10503.   ac_more_lines=:
  10504.   ac_sed_cmds=
  10505.   while $ac_more_lines; do
  10506.     if test $ac_beg -gt 1; then
  10507.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10508.     else
  10509.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10510.     fi
  10511.     if test ! -s $tmp/subs.frag; then
  10512.       ac_more_lines=false
  10513.     else
  10514.       # The purpose of the label and of the branching condition is to
  10515.       # speed up the sed processing (if there are no `@' at all, there
  10516.       # is no need to browse any of the substitutions).
  10517.       # These are the two extra sed commands mentioned above.
  10518.       (echo ':t
  10519.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10520.       if test -z "$ac_sed_cmds"; then
  10521.       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10522.       else
  10523.       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10524.       fi
  10525.       ac_sed_frag=`expr $ac_sed_frag + 1`
  10526.       ac_beg=$ac_end
  10527.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  10528.     fi
  10529.   done
  10530.   if test -z "$ac_sed_cmds"; then
  10531.     ac_sed_cmds=cat
  10532.   fi
  10533. fi # test -n "$CONFIG_FILES"
  10534.  
  10535. _ACEOF
  10536. cat >>$CONFIG_STATUS <<\_ACEOF
  10537. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10538.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10539.   case $ac_file in
  10540.   - | *:- | *:-:* ) # input from stdin
  10541.         cat >$tmp/stdin
  10542.         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10543.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10544.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10545.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10546.   * )   ac_file_in=$ac_file.in ;;
  10547.   esac
  10548.  
  10549.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10550.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10551. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10552.          X"$ac_file" : 'X\(//\)[^/]' \| \
  10553.          X"$ac_file" : 'X\(//\)$' \| \
  10554.          X"$ac_file" : 'X\(/\)' \| \
  10555.          .     : '\(.\)' 2>/dev/null ||
  10556. echo X"$ac_file" |
  10557.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10558.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10559.         /^X\(\/\/\)$/{ s//\1/; q; }
  10560.         /^X\(\/\).*/{ s//\1/; q; }
  10561.         s/.*/./; q'`
  10562.   { case "$ac_dir" in
  10563.   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  10564.   *)                      as_incr_dir=.;;
  10565. esac
  10566. as_dummy="$ac_dir"
  10567. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  10568.   case $as_mkdir_dir in
  10569.     # Skip DOS drivespec
  10570.     ?:) as_incr_dir=$as_mkdir_dir ;;
  10571.     *)
  10572.       as_incr_dir=$as_incr_dir/$as_mkdir_dir
  10573.       test -d "$as_incr_dir" ||
  10574.         mkdir "$as_incr_dir" ||
  10575.     { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  10576. echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  10577.    { (exit 1); exit 1; }; }
  10578.     ;;
  10579.   esac
  10580. done; }
  10581.  
  10582.   ac_builddir=.
  10583.  
  10584. if test "$ac_dir" != .; then
  10585.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10586.   # A "../" for each directory in $ac_dir_suffix.
  10587.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10588. else
  10589.   ac_dir_suffix= ac_top_builddir=
  10590. fi
  10591.  
  10592. case $srcdir in
  10593.   .)  # No --srcdir option.  We are building in place.
  10594.     ac_srcdir=.
  10595.     if test -z "$ac_top_builddir"; then
  10596.        ac_top_srcdir=.
  10597.     else
  10598.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10599.     fi ;;
  10600.   [\\/]* | ?:[\\/]* )  # Absolute path.
  10601.     ac_srcdir=$srcdir$ac_dir_suffix;
  10602.     ac_top_srcdir=$srcdir ;;
  10603.   *) # Relative path.
  10604.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10605.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10606. esac
  10607. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  10608. # absolute.
  10609. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  10610. ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  10611. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  10612. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  10613.  
  10614.  
  10615.   case $INSTALL in
  10616.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10617.   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10618.   esac
  10619.  
  10620.   if test x"$ac_file" != x-; then
  10621.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  10622. echo "$as_me: creating $ac_file" >&6;}
  10623.     rm -f "$ac_file"
  10624.   fi
  10625.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  10626.   # use $as_me), people would be surprised to read:
  10627.   #    /* config.h.  Generated by config.status.  */
  10628.   if test x"$ac_file" = x-; then
  10629.     configure_input=
  10630.   else
  10631.     configure_input="$ac_file.  "
  10632.   fi
  10633.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  10634.                                      sed 's,.*/,,'` by configure."
  10635.  
  10636.   # First look for the input files in the build tree, otherwise in the
  10637.   # src tree.
  10638.   ac_file_inputs=`IFS=:
  10639.     for f in $ac_file_in; do
  10640.       case $f in
  10641.       -) echo $tmp/stdin ;;
  10642.       [\\/$]*)
  10643.          # Absolute (can't be DOS-style, as IFS=:)
  10644.          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10645. echo "$as_me: error: cannot find input file: $f" >&2;}
  10646.    { (exit 1); exit 1; }; }
  10647.          echo $f;;
  10648.       *) # Relative
  10649.          if test -f "$f"; then
  10650.            # Build tree
  10651.            echo $f
  10652.          elif test -f "$srcdir/$f"; then
  10653.            # Source tree
  10654.            echo $srcdir/$f
  10655.          else
  10656.            # /dev/null tree
  10657.            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10658. echo "$as_me: error: cannot find input file: $f" >&2;}
  10659.    { (exit 1); exit 1; }; }
  10660.          fi;;
  10661.       esac
  10662.     done` || { (exit 1); exit 1; }
  10663. _ACEOF
  10664. cat >>$CONFIG_STATUS <<_ACEOF
  10665.   sed "$ac_vpsub
  10666. $extrasub
  10667. _ACEOF
  10668. cat >>$CONFIG_STATUS <<\_ACEOF
  10669. :t
  10670. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10671. s,@configure_input@,$configure_input,;t t
  10672. s,@srcdir@,$ac_srcdir,;t t
  10673. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10674. s,@top_srcdir@,$ac_top_srcdir,;t t
  10675. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10676. s,@builddir@,$ac_builddir,;t t
  10677. s,@abs_builddir@,$ac_abs_builddir,;t t
  10678. s,@top_builddir@,$ac_top_builddir,;t t
  10679. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10680. s,@INSTALL@,$ac_INSTALL,;t t
  10681. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10682.   rm -f $tmp/stdin
  10683.   if test x"$ac_file" != x-; then
  10684.     mv $tmp/out $ac_file
  10685.   else
  10686.     cat $tmp/out
  10687.     rm -f $tmp/out
  10688.   fi
  10689.  
  10690. done
  10691. _ACEOF
  10692. cat >>$CONFIG_STATUS <<\_ACEOF
  10693.  
  10694. #
  10695. # CONFIG_HEADER section.
  10696. #
  10697.  
  10698. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10699. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10700. #
  10701. # ac_d sets the value in "#define NAME VALUE" lines.
  10702. ac_dA='s,^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  10703. ac_dB='[     ].*$,\1#\2'
  10704. ac_dC=' '
  10705. ac_dD=',;t'
  10706. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10707. ac_uA='s,^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  10708. ac_uB='$,\1#\2define\3'
  10709. ac_uC=' '
  10710. ac_uD=',;t'
  10711.  
  10712. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10713.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10714.   case $ac_file in
  10715.   - | *:- | *:-:* ) # input from stdin
  10716.         cat >$tmp/stdin
  10717.         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10718.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10719.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10720.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10721.   * )   ac_file_in=$ac_file.in ;;
  10722.   esac
  10723.  
  10724.   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10725. echo "$as_me: creating $ac_file" >&6;}
  10726.  
  10727.   # First look for the input files in the build tree, otherwise in the
  10728.   # src tree.
  10729.   ac_file_inputs=`IFS=:
  10730.     for f in $ac_file_in; do
  10731.       case $f in
  10732.       -) echo $tmp/stdin ;;
  10733.       [\\/$]*)
  10734.          # Absolute (can't be DOS-style, as IFS=:)
  10735.          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10736. echo "$as_me: error: cannot find input file: $f" >&2;}
  10737.    { (exit 1); exit 1; }; }
  10738.          echo $f;;
  10739.       *) # Relative
  10740.          if test -f "$f"; then
  10741.            # Build tree
  10742.            echo $f
  10743.          elif test -f "$srcdir/$f"; then
  10744.            # Source tree
  10745.            echo $srcdir/$f
  10746.          else
  10747.            # /dev/null tree
  10748.            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10749. echo "$as_me: error: cannot find input file: $f" >&2;}
  10750.    { (exit 1); exit 1; }; }
  10751.          fi;;
  10752.       esac
  10753.     done` || { (exit 1); exit 1; }
  10754.   # Remove the trailing spaces.
  10755.   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
  10756.  
  10757. _ACEOF
  10758.  
  10759. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10760. # `conftest.undefs', that substitutes the proper values into
  10761. # config.h.in to produce config.h.  The first handles `#define'
  10762. # templates, and the second `#undef' templates.
  10763. # And first: Protect against being on the right side of a sed subst in
  10764. # config.status.  Protect against being in an unquoted here document
  10765. # in config.status.
  10766. rm -f conftest.defines conftest.undefs
  10767. # Using a here document instead of a string reduces the quoting nightmare.
  10768. # Putting comments in sed scripts is not portable.
  10769. #
  10770. # `end' is used to avoid that the second main sed command (meant for
  10771. # 0-ary CPP macros) applies to n-ary macro definitions.
  10772. # See the Autoconf documentation for `clear'.
  10773. cat >confdef2sed.sed <<\_ACEOF
  10774. s/[\\&,]/\\&/g
  10775. s,[\\$`],\\&,g
  10776. t clear
  10777. : clear
  10778. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*\)\(([^)]*)\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10779. t end
  10780. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10781. : end
  10782. _ACEOF
  10783. # If some macros were called several times there might be several times
  10784. # the same #defines, which is useless.  Nevertheless, we may not want to
  10785. # sort them, since we want the *last* AC-DEFINE to be honored.
  10786. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10787. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10788. rm -f confdef2sed.sed
  10789.  
  10790. # This sed command replaces #undef with comments.  This is necessary, for
  10791. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10792. # on some systems where configure will not decide to define it.
  10793. cat >>conftest.undefs <<\_ACEOF
  10794. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10795. _ACEOF
  10796.  
  10797. # Break up conftest.defines because some shells have a limit on the size
  10798. # of here documents, and old seds have small limits too (100 cmds).
  10799. echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10800. echo '  if egrep "^[     ]*#[     ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10801. echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10802. echo '  :' >>$CONFIG_STATUS
  10803. rm -f conftest.tail
  10804. while grep . conftest.defines >/dev/null
  10805. do
  10806.   # Write a limited-size here document to $tmp/defines.sed.
  10807.   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10808.   # Speed up: don't consider the non `#define' lines.
  10809.   echo '/^[     ]*#[     ]*define/!b' >>$CONFIG_STATUS
  10810.   # Work around the forget-to-reset-the-flag bug.
  10811.   echo 't clr' >>$CONFIG_STATUS
  10812.   echo ': clr' >>$CONFIG_STATUS
  10813.   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10814.   echo 'CEOF
  10815.   sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10816.   rm -f $tmp/in
  10817.   mv $tmp/out $tmp/in
  10818. ' >>$CONFIG_STATUS
  10819.   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10820.   rm -f conftest.defines
  10821.   mv conftest.tail conftest.defines
  10822. done
  10823. rm -f conftest.defines
  10824. echo '  fi # egrep' >>$CONFIG_STATUS
  10825. echo >>$CONFIG_STATUS
  10826.  
  10827. # Break up conftest.undefs because some shells have a limit on the size
  10828. # of here documents, and old seds have small limits too (100 cmds).
  10829. echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
  10830. rm -f conftest.tail
  10831. while grep . conftest.undefs >/dev/null
  10832. do
  10833.   # Write a limited-size here document to $tmp/undefs.sed.
  10834.   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10835.   # Speed up: don't consider the non `#undef'
  10836.   echo '/^[     ]*#[     ]*undef/!b' >>$CONFIG_STATUS
  10837.   # Work around the forget-to-reset-the-flag bug.
  10838.   echo 't clr' >>$CONFIG_STATUS
  10839.   echo ': clr' >>$CONFIG_STATUS
  10840.   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10841.   echo 'CEOF
  10842.   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10843.   rm -f $tmp/in
  10844.   mv $tmp/out $tmp/in
  10845. ' >>$CONFIG_STATUS
  10846.   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10847.   rm -f conftest.undefs
  10848.   mv conftest.tail conftest.undefs
  10849. done
  10850. rm -f conftest.undefs
  10851.  
  10852. cat >>$CONFIG_STATUS <<\_ACEOF
  10853.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  10854.   # use $as_me), people would be surprised to read:
  10855.   #    /* config.h.  Generated by config.status.  */
  10856.   if test x"$ac_file" = x-; then
  10857.     echo "/* Generated by configure.  */" >$tmp/config.h
  10858.   else
  10859.     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  10860.   fi
  10861.   cat $tmp/in >>$tmp/config.h
  10862.   rm -f $tmp/in
  10863.   if test x"$ac_file" != x-; then
  10864.     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  10865.       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10866. echo "$as_me: $ac_file is unchanged" >&6;}
  10867.     else
  10868.       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10869. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10870.          X"$ac_file" : 'X\(//\)[^/]' \| \
  10871.          X"$ac_file" : 'X\(//\)$' \| \
  10872.          X"$ac_file" : 'X\(/\)' \| \
  10873.          .     : '\(.\)' 2>/dev/null ||
  10874. echo X"$ac_file" |
  10875.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10876.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10877.         /^X\(\/\/\)$/{ s//\1/; q; }
  10878.         /^X\(\/\).*/{ s//\1/; q; }
  10879.         s/.*/./; q'`
  10880.       { case "$ac_dir" in
  10881.   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  10882.   *)                      as_incr_dir=.;;
  10883. esac
  10884. as_dummy="$ac_dir"
  10885. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  10886.   case $as_mkdir_dir in
  10887.     # Skip DOS drivespec
  10888.     ?:) as_incr_dir=$as_mkdir_dir ;;
  10889.     *)
  10890.       as_incr_dir=$as_incr_dir/$as_mkdir_dir
  10891.       test -d "$as_incr_dir" ||
  10892.         mkdir "$as_incr_dir" ||
  10893.     { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  10894. echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  10895.    { (exit 1); exit 1; }; }
  10896.     ;;
  10897.   esac
  10898. done; }
  10899.  
  10900.       rm -f $ac_file
  10901.       mv $tmp/config.h $ac_file
  10902.     fi
  10903.   else
  10904.     cat $tmp/config.h
  10905.     rm -f $tmp/config.h
  10906.   fi
  10907. done
  10908. _ACEOF
  10909.  
  10910. cat >>$CONFIG_STATUS <<\_ACEOF
  10911.  
  10912. { (exit 0); exit 0; }
  10913. _ACEOF
  10914. chmod +x $CONFIG_STATUS
  10915. ac_clean_files=$ac_clean_files_save
  10916.  
  10917.  
  10918. # configure is writing to config.log, and then calls config.status.
  10919. # config.status does its own redirection, appending to config.log.
  10920. # Unfortunately, on DOS this fails, as config.log is still kept open
  10921. # by configure, so config.status won't be able to write to it; its
  10922. # output is simply discarded.  So we exec the FD to /dev/null,
  10923. # effectively closing config.log, so it can be properly (re)opened and
  10924. # appended to by config.status.  When coming back to configure, we
  10925. # need to make the FD available again.
  10926. if test "$no_create" != yes; then
  10927.   ac_cs_success=:
  10928.   exec 5>/dev/null
  10929.   $SHELL $CONFIG_STATUS || ac_cs_success=false
  10930.   exec 5>>config.log
  10931.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10932.   # would make configure fail if this is the last instruction.
  10933.   $ac_cs_success || { (exit 1); exit 1; }
  10934. fi
  10935.  
  10936.  
  10937. if test -n "$no_x"; then
  10938.   { echo "$as_me:$LINENO: WARNING: Couldn't find X / Motif -- you will be able to compile
  10939.         pdftops, pdftotext, pdfinfo, pdffonts, and pdfimages, but not xpdf" >&5
  10940. echo "$as_me: WARNING: Couldn't find X / Motif -- you will be able to compile
  10941.         pdftops, pdftotext, pdfinfo, pdffonts, and pdfimages, but not xpdf" >&2;}
  10942. fi
  10943.